test
This commit is contained in:
parent
0c1abc4bb4
commit
2627fdb9ec
@ -20,7 +20,7 @@ class Commands():
|
|||||||
def sopel_action_commands(self):
|
def sopel_action_commands(self):
|
||||||
return self.bot.rules.get_all_action_commands()
|
return self.bot.rules.get_all_action_commands()
|
||||||
|
|
||||||
def dispatch(self, bot, trigger, message):
|
def dispatch_command(self, bot, trigger, message):
|
||||||
pretrigger = PreTrigger(
|
pretrigger = PreTrigger(
|
||||||
bot.nick,
|
bot.nick,
|
||||||
":%s %s %s :%s" % (trigger.hostmask, "PRIVMSG", trigger.sender, message)
|
":%s %s %s :%s" % (trigger.hostmask, "PRIVMSG", trigger.sender, message)
|
||||||
|
|||||||
@ -10,8 +10,4 @@ from sopel_SpiceBot_Core_Prerun import prerun_action_command
|
|||||||
@prerun_action_command()
|
@prerun_action_command()
|
||||||
@plugin.action_command('test')
|
@plugin.action_command('test')
|
||||||
def sb_test_commands(bot, trigger):
|
def sb_test_commands(bot, trigger):
|
||||||
bot.say("Testing the bot")
|
bot.say("test c: %s" % trigger.raw)
|
||||||
bot.say("Attributes: %s" % [x for x in dir(sb) if not x.startswith("__")])
|
|
||||||
bot.say("%s" % sb.versions.dict)
|
|
||||||
|
|
||||||
sb.osd("test", trigger.sender)
|
|
||||||
|
|||||||
@ -32,4 +32,4 @@ def commands_test_c(bot, trigger):
|
|||||||
|
|
||||||
bot.say("test c: %s" % trigger.raw)
|
bot.say("test c: %s" % trigger.raw)
|
||||||
|
|
||||||
sb.commands.dispatch(bot, trigger, ".testa")
|
sb.commands.dispatch_command(bot, trigger, ".testa")
|
||||||
|
|||||||
@ -10,11 +10,7 @@ from sopel_SpiceBot_Core_Prerun import prerun_nickname_command
|
|||||||
@prerun_nickname_command()
|
@prerun_nickname_command()
|
||||||
@plugin.nickname_command('test')
|
@plugin.nickname_command('test')
|
||||||
def sb_test_commands(bot, trigger):
|
def sb_test_commands(bot, trigger):
|
||||||
bot.say("Testing the bot")
|
bot.say("test c: %s" % trigger.raw)
|
||||||
bot.say("Attributes: %s" % [x for x in dir(sb) if not x.startswith("__")])
|
|
||||||
bot.say("%s" % sb.versions.dict)
|
|
||||||
|
|
||||||
sb.osd("test", trigger.sender)
|
|
||||||
|
|
||||||
|
|
||||||
@prerun_nickname_command()
|
@prerun_nickname_command()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user