This commit is contained in:
deathbybandaid 2019-06-04 12:24:01 -04:00
parent fe71dd32df
commit 2750597d73
3 changed files with 0 additions and 21 deletions

View File

@ -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)

View File

@ -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

View File

@ -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 *