test
This commit is contained in:
parent
2627fdb9ec
commit
6e5460eb58
@ -26,3 +26,17 @@ class Commands():
|
|||||||
":%s %s %s :%s" % (trigger.hostmask, "PRIVMSG", trigger.sender, message)
|
":%s %s %s :%s" % (trigger.hostmask, "PRIVMSG", trigger.sender, message)
|
||||||
)
|
)
|
||||||
bot.dispatch(pretrigger)
|
bot.dispatch(pretrigger)
|
||||||
|
|
||||||
|
def dispatch_action_command(self, bot, trigger, message):
|
||||||
|
pretrigger = PreTrigger(
|
||||||
|
bot.nick,
|
||||||
|
":%s %s %s : %s %s" % (trigger.hostmask, "PRIVMSG", trigger.sender, "ACTION", message)
|
||||||
|
)
|
||||||
|
bot.dispatch(pretrigger)
|
||||||
|
|
||||||
|
def dispatch_nickname_command(self, bot, trigger, message):
|
||||||
|
pretrigger = PreTrigger(
|
||||||
|
bot.nick,
|
||||||
|
":%s %s %s : %s %s" % (trigger.hostmask, "PRIVMSG", trigger.sender, bot.nick, message)
|
||||||
|
)
|
||||||
|
bot.dispatch(pretrigger)
|
||||||
|
|||||||
@ -10,4 +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("test c: %s" % trigger.raw)
|
bot.say("%s" % trigger.raw)
|
||||||
|
|||||||
@ -10,7 +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("test c: %s" % trigger.raw)
|
bot.say("%s" % trigger.raw)
|
||||||
|
|
||||||
|
|
||||||
@prerun_nickname_command()
|
@prerun_nickname_command()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user