Compare commits
2 Commits
954d6c109a
...
65b5e88701
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
65b5e88701 | ||
|
|
34e0e997fc |
@ -11,24 +11,17 @@ def commands_test(bot, trigger, comrun):
|
||||
bot.say("%s" % trigger.raw)
|
||||
|
||||
|
||||
@prerun()
|
||||
@plugin.command('testa')
|
||||
def commands_test_a(bot, trigger):
|
||||
bot.say("test a")
|
||||
bot.say(str(trigger.tags))
|
||||
|
||||
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):
|
||||
|
||||
@ -4,11 +4,11 @@ from sopel import plugin
|
||||
from sopel_SpiceBot_Core_Prerun import prerun
|
||||
|
||||
|
||||
@prerun(rulematch=True)
|
||||
@plugin.command('(.*)')
|
||||
def rule_command(bot, trigger, comrun):
|
||||
bot.say("%s" % trigger.raw)
|
||||
bot.say("now")
|
||||
bot.say(str(comrun.trigger_dict))
|
||||
comrun.say = "nothing"
|
||||
bot.say(str(trigger.match))
|
||||
# @prerun(rulematch=True)
|
||||
# @plugin.command('(.*)')
|
||||
# def rule_command(bot, trigger, comrun):
|
||||
# bot.say("%s" % trigger.raw)
|
||||
# bot.say("now")
|
||||
# bot.say(str(comrun.trigger_dict))
|
||||
# comrun.say = "nothing"
|
||||
# bot.say(str(trigger.match))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user