diff --git a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py index c1358c0..3dc53ff 100644 --- a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py +++ b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py @@ -32,11 +32,12 @@ class Commands(): bot.nick, ":%s %s %s : %s %s" % (trigger.hostmask, "PRIVMSG", trigger.sender, "ACTION", message) ) + # TODO possible extra space in front of ACTION 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) + ":%s %s %s :%s %s" % (trigger.hostmask, "PRIVMSG", trigger.sender, bot.nick, message) ) bot.dispatch(pretrigger) diff --git a/sopel_SpiceBot_Runtime_Action_Commands/__init__.py b/sopel_SpiceBot_Runtime_Action_Commands/__init__.py index 9f4d6d7..51ec093 100644 --- a/sopel_SpiceBot_Runtime_Action_Commands/__init__.py +++ b/sopel_SpiceBot_Runtime_Action_Commands/__init__.py @@ -11,3 +11,5 @@ from sopel_SpiceBot_Core_Prerun import prerun_action_command @plugin.action_command('test') def sb_test_commands(bot, trigger): bot.say("%s" % trigger.raw) + + bot.say("%s" % trigger.args[1]) diff --git a/sopel_SpiceBot_Runtime_Commands/__init__.py b/sopel_SpiceBot_Runtime_Commands/__init__.py index 32ce597..9503ce0 100644 --- a/sopel_SpiceBot_Runtime_Commands/__init__.py +++ b/sopel_SpiceBot_Runtime_Commands/__init__.py @@ -12,6 +12,8 @@ from sopel_SpiceBot_Core_Prerun import prerun_command def commands_test(bot, trigger): bot.say("%s" % trigger.raw) + bot.say("%s" % trigger.args[1]) + @prerun_command() @plugin.command('testa') diff --git a/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py b/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py index 896d827..98be7f6 100644 --- a/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py +++ b/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py @@ -12,6 +12,8 @@ from sopel_SpiceBot_Core_Prerun import prerun_nickname_command def sb_test_commands(bot, trigger): bot.say("%s" % trigger.raw) + bot.say("%s" % trigger.args[1]) + @prerun_nickname_command() @plugin.nickname_command('commands')