mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-11 14:10:58 -05:00
goodbye
This commit is contained in:
parent
fe71dd32df
commit
2750597d73
@ -1,19 +0,0 @@
|
||||
# coding=utf-8
|
||||
|
||||
from __future__ import unicode_literals, absolute_import, division, print_function
|
||||
|
||||
import sopel.module
|
||||
|
||||
import spicemanip
|
||||
|
||||
|
||||
@sopel.module.rule(r'(?i)(bye|goodbye|gtg|seeya|cya|ttyl|g2g|gnight|goodnight),? $nickname[ \t]*$')
|
||||
def bot_command_goodbye(bot, trigger):
|
||||
byemsg = spicemanip.main(['Bye', 'Goodbye', 'Seeya', 'Auf Wiedersehen', 'Au revoir', 'Ttyl'], "random")
|
||||
punctuation = spicemanip.main(['!', ''], "random")
|
||||
bot.osd(byemsg + ' ' + trigger.nick + punctuation)
|
||||
|
||||
|
||||
@sopel.module.nickname_commands("bye", "goodbye", "gtg", "seeya", "cya", "ttyl", "g2g", "gnight", "goodnight")
|
||||
def bot_command_goodbye_b(bot, trigger):
|
||||
bot_command_goodbye(bot, trigger)
|
||||
@ -27,7 +27,6 @@ def bot_command_rule(bot, trigger):
|
||||
|
||||
if str(message).lower().startswith(str(bot.nick).lower()):
|
||||
trigger_args, trigger_command = SpiceBot.prerun.trigger_args(message, 'nickname')
|
||||
|
||||
if trigger_command in SpiceBot.commands.dict['commands']["nickname"].keys():
|
||||
return
|
||||
|
||||
|
||||
@ -4,7 +4,6 @@ from __future__ import unicode_literals, absolute_import, division, print_functi
|
||||
from .AI import *
|
||||
from .AI_aiml import *
|
||||
from .AI_Hello import *
|
||||
from .AI_Goodbye import *
|
||||
from .AI_Thanks import *
|
||||
from .AI_Lazy import *
|
||||
from .AI_InsultHandler import *
|
||||
|
||||
Loading…
Reference in New Issue
Block a user