test
This commit is contained in:
parent
d215eff24e
commit
fd43b7aea6
@ -32,11 +32,12 @@ class Commands():
|
|||||||
bot.nick,
|
bot.nick,
|
||||||
":%s %s %s : %s %s" % (trigger.hostmask, "PRIVMSG", trigger.sender, "ACTION", message)
|
":%s %s %s : %s %s" % (trigger.hostmask, "PRIVMSG", trigger.sender, "ACTION", message)
|
||||||
)
|
)
|
||||||
|
# TODO possible extra space in front of ACTION
|
||||||
bot.dispatch(pretrigger)
|
bot.dispatch(pretrigger)
|
||||||
|
|
||||||
def dispatch_nickname_command(self, bot, trigger, message):
|
def dispatch_nickname_command(self, bot, trigger, message):
|
||||||
pretrigger = PreTrigger(
|
pretrigger = PreTrigger(
|
||||||
bot.nick,
|
bot.nick,
|
||||||
":%s %s %s : %s %s" % (trigger.hostmask, "PRIVMSG", trigger.sender, bot.nick, message)
|
":%s %s %s :%s %s" % (trigger.hostmask, "PRIVMSG", trigger.sender, bot.nick, message)
|
||||||
)
|
)
|
||||||
bot.dispatch(pretrigger)
|
bot.dispatch(pretrigger)
|
||||||
|
|||||||
@ -11,3 +11,5 @@ from sopel_SpiceBot_Core_Prerun import 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("%s" % trigger.raw)
|
bot.say("%s" % trigger.raw)
|
||||||
|
|
||||||
|
bot.say("%s" % trigger.args[1])
|
||||||
|
|||||||
@ -12,6 +12,8 @@ from sopel_SpiceBot_Core_Prerun import prerun_command
|
|||||||
def commands_test(bot, trigger):
|
def commands_test(bot, trigger):
|
||||||
bot.say("%s" % trigger.raw)
|
bot.say("%s" % trigger.raw)
|
||||||
|
|
||||||
|
bot.say("%s" % trigger.args[1])
|
||||||
|
|
||||||
|
|
||||||
@prerun_command()
|
@prerun_command()
|
||||||
@plugin.command('testa')
|
@plugin.command('testa')
|
||||||
|
|||||||
@ -12,6 +12,8 @@ from sopel_SpiceBot_Core_Prerun import prerun_nickname_command
|
|||||||
def sb_test_commands(bot, trigger):
|
def sb_test_commands(bot, trigger):
|
||||||
bot.say("%s" % trigger.raw)
|
bot.say("%s" % trigger.raw)
|
||||||
|
|
||||||
|
bot.say("%s" % trigger.args[1])
|
||||||
|
|
||||||
|
|
||||||
@prerun_nickname_command()
|
@prerun_nickname_command()
|
||||||
@plugin.nickname_command('commands')
|
@plugin.nickname_command('commands')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user