Compare commits

...

2 Commits

Author SHA1 Message Date
deathbybandaid
65b5e88701 teat 2022-02-23 14:44:18 -05:00
deathbybandaid
34e0e997fc test 2022-02-23 14:43:40 -05:00
2 changed files with 9 additions and 16 deletions

View File

@ -11,24 +11,17 @@ def commands_test(bot, trigger, comrun):
bot.say("%s" % trigger.raw) bot.say("%s" % trigger.raw)
@prerun()
@plugin.command('testa') @plugin.command('testa')
def commands_test_a(bot, trigger): def commands_test_a(bot, trigger):
bot.say("test a") bot.say("test a")
bot.say(str(trigger.tags))
bot.say("%s" % trigger.hostmask)
bot.say("test a: %s" % trigger.raw)
@prerun() @prerun()
@plugin.command('testb') @plugin.command('testb')
def commands_test_b(bot, trigger, comrun): def commands_test_b(bot, trigger, comrun):
bot.say("test b") bot.say("test b")
bot.say("test b: %s" % trigger.raw)
@plugin.command('testc') @plugin.command('testc')
def commands_test_c(bot, trigger, comrun): def commands_test_c(bot, trigger, comrun):

View File

@ -4,11 +4,11 @@ from sopel import plugin
from sopel_SpiceBot_Core_Prerun import prerun from sopel_SpiceBot_Core_Prerun import prerun
@prerun(rulematch=True) # @prerun(rulematch=True)
@plugin.command('(.*)') # @plugin.command('(.*)')
def rule_command(bot, trigger, comrun): # def rule_command(bot, trigger, comrun):
bot.say("%s" % trigger.raw) # bot.say("%s" % trigger.raw)
bot.say("now") # bot.say("now")
bot.say(str(comrun.trigger_dict)) # bot.say(str(comrun.trigger_dict))
comrun.say = "nothing" # comrun.say = "nothing"
bot.say(str(trigger.match)) # bot.say(str(trigger.match))