This commit is contained in:
deathbybandaid 2022-02-12 11:38:50 -05:00
parent 0c1abc4bb4
commit 2627fdb9ec
4 changed files with 4 additions and 12 deletions

View File

@ -20,7 +20,7 @@ class Commands():
def sopel_action_commands(self):
return self.bot.rules.get_all_action_commands()
def dispatch(self, bot, trigger, message):
def dispatch_command(self, bot, trigger, message):
pretrigger = PreTrigger(
bot.nick,
":%s %s %s :%s" % (trigger.hostmask, "PRIVMSG", trigger.sender, message)

View File

@ -10,8 +10,4 @@ from sopel_SpiceBot_Core_Prerun import prerun_action_command
@prerun_action_command()
@plugin.action_command('test')
def sb_test_commands(bot, trigger):
bot.say("Testing the bot")
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)
bot.say("test c: %s" % trigger.raw)

View File

@ -32,4 +32,4 @@ def commands_test_c(bot, trigger):
bot.say("test c: %s" % trigger.raw)
sb.commands.dispatch(bot, trigger, ".testa")
sb.commands.dispatch_command(bot, trigger, ".testa")

View File

@ -10,11 +10,7 @@ from sopel_SpiceBot_Core_Prerun import prerun_nickname_command
@prerun_nickname_command()
@plugin.nickname_command('test')
def sb_test_commands(bot, trigger):
bot.say("Testing the bot")
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)
bot.say("test c: %s" % trigger.raw)
@prerun_nickname_command()