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): 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)

View File

@ -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)

View File

@ -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")

View File

@ -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()