mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 22:49:53 -05:00
adjust
This commit is contained in:
parent
2dd9efb6ca
commit
3387259096
@ -11,10 +11,8 @@ from sopel_modules.SpiceBot_Events.System import bot_events_check
|
|||||||
|
|
||||||
|
|
||||||
@sopel.module.rule(r'(?i)(hi|hello|hey),? $nickname[ \t]*$')
|
@sopel.module.rule(r'(?i)(hi|hello|hey),? $nickname[ \t]*$')
|
||||||
def bot_command_hello(bot, trigger):
|
def bot_command_hello_a(bot, trigger):
|
||||||
hello = spicemanip.main(['Hi', 'Hey', 'Hello'], "random")
|
bot_command_hello(bot, trigger)
|
||||||
punctuation = spicemanip.main(['', '!', '?'], "random")
|
|
||||||
bot.osd(hello + ' ' + trigger.nick + punctuation)
|
|
||||||
|
|
||||||
|
|
||||||
@sopel.module.nickname_commands('hello')
|
@sopel.module.nickname_commands('hello')
|
||||||
@ -22,6 +20,12 @@ def bot_command_hello_b(bot, trigger):
|
|||||||
bot_command_hello(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!')
|
@sopel.module.rule('$nickname!')
|
||||||
def exclaim(bot, trigger):
|
def exclaim(bot, trigger):
|
||||||
bot.say(trigger.nick + '!')
|
bot.say(trigger.nick + '!')
|
||||||
@ -44,7 +48,7 @@ def bot_command_damnlazy(bot, trigger):
|
|||||||
|
|
||||||
@sopel.module.rule('$nickname is lazy')
|
@sopel.module.rule('$nickname is lazy')
|
||||||
def bot_command_damnlazy_b(bot, trigger):
|
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('(.*)')
|
@sopel.module.nickname_commands('(.*)')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user