# coding=utf8 from __future__ import unicode_literals, absolute_import, division, print_function """ This is the SpiceBot Channels system. """ import sopel import sopel_modules.SpiceBot as SpiceBot @sopel.module.event('JOIN') @sopel.module.rule('.*') def users_join(bot, trigger): bot.say(str(trigger)) bot.say(str(trigger.args)) # SpiceBot.users.join(bot, trigger) @sopel.module.event('QUIT') @sopel.module.rule('.*') def users_quit(bot, trigger): bot.say(str(trigger)) bot.say(str(trigger.args)) # SpiceBot.users.quit(bot, trigger) @sopel.module.event('PART') @sopel.module.rule('.*') def users_part(bot, trigger): bot.say(str(trigger)) bot.say(str(trigger.args)) # SpiceBot.users.part(bot, trigger) @sopel.module.event('KICK') @sopel.module.rule('.*') def users_kick(bot, trigger): bot.say(str(trigger)) bot.say(str(trigger.args)) # SpiceBot.users.kick(bot, trigger)