SpiceBot/sopel_SpiceBot_Runtime_Commands/__init__.py
deathbybandaid 183d8da24c test
2022-02-22 14:07:31 -05:00

54 lines
1.0 KiB
Python

from sopel import plugin
from sopel_SpiceBot_Core_Prerun import prerun
@prerun()
@plugin.command('pipea')
def pipea(bot, trigger, comrun):
bot.say("%s" % trigger.raw)
bot.say(str(comrun.trigger_dict))
comrun.say = str(comrun.trigger_dict["trigger_str"]).lower()
@prerun()
@plugin.command('pipeb')
def pipeb(bot, trigger, comrun):
bot.say("%s" % trigger.raw)
bot.say(str(comrun.trigger_dict))
comrun.say = str(comrun.trigger_dict["trigger_str"]).upper()
@prerun()
@plugin.command('test', "testnew")
def commands_test(bot, trigger, comrun):
bot.say("%s" % trigger.raw)
@prerun()
@plugin.command('testa')
def commands_test_a(bot, trigger, comrun):
bot.say("test a")
bot.say("%s" % trigger.hostmask)
bot.say("test a: %s" % trigger.raw)
@prerun()
@plugin.command('testb')
def commands_test_b(bot, trigger, comrun):
bot.say("test b")
bot.say("test b: %s" % trigger.raw)
@plugin.command('testc')
def commands_test_c(bot, trigger, comrun):
bot.say("test c")
bot.say("test c: %s" % trigger.raw)