This commit is contained in:
deathbybandaid 2019-05-08 13:40:52 -04:00
parent 2dd9efb6ca
commit 3387259096

View File

@ -11,10 +11,8 @@ from sopel_modules.SpiceBot_Events.System import bot_events_check
@sopel.module.rule(r'(?i)(hi|hello|hey),? $nickname[ \t]*$')
def bot_command_hello(bot, trigger):
hello = spicemanip.main(['Hi', 'Hey', 'Hello'], "random")
punctuation = spicemanip.main(['', '!', '?'], "random")
bot.osd(hello + ' ' + trigger.nick + punctuation)
def bot_command_hello_a(bot, trigger):
bot_command_hello(bot, trigger)
@sopel.module.nickname_commands('hello')
@ -22,6 +20,12 @@ def bot_command_hello_b(bot, trigger):
bot_command_hello(bot, trigger)
def bot_command_hello(bot, trigger):
hello = spicemanip.main(['Hi', 'Hey', 'Hello'], "random")
punctuation = spicemanip.main(['', '!', '?'], "random")
bot.osd(hello + ' ' + trigger.nick + punctuation)
@sopel.module.rule('$nickname!')
def exclaim(bot, trigger):
bot.say(trigger.nick + '!')
@ -44,7 +48,7 @@ def bot_command_damnlazy(bot, trigger):
@sopel.module.rule('$nickname is lazy')
def bot_command_damnlazy_b(bot, trigger):
bot_command_damnlazy(bot, trigger)
bot.osd("I do not tell you how to do your job, " + trigger.nick + "!!!")
@sopel.module.nickname_commands('(.*)')