test
This commit is contained in:
parent
8346a378c0
commit
88dea71ccd
@ -2,8 +2,6 @@ import functools
|
|||||||
|
|
||||||
from sopel_SpiceBot_Core_1 import sb
|
from sopel_SpiceBot_Core_1 import sb
|
||||||
|
|
||||||
from spicemanip import spicemanip
|
|
||||||
|
|
||||||
|
|
||||||
def get_commands(bot, trigger):
|
def get_commands(bot, trigger):
|
||||||
commands = []
|
commands = []
|
||||||
@ -26,8 +24,8 @@ def get_commands(bot, trigger):
|
|||||||
first_trigger = first_trigger[1:]
|
first_trigger = first_trigger[1:]
|
||||||
elif first_trigger.startswith(bot.nick):
|
elif first_trigger.startswith(bot.nick):
|
||||||
first_trigger_type = "nickname_command"
|
first_trigger_type = "nickname_command"
|
||||||
first_trigger_prefix = first_trigger[0]
|
first_trigger_prefix = str(first_trigger.split(" ")[0])
|
||||||
first_trigger = first_trigger[1:]
|
first_trigger = str(first_trigger.split(" ")[1:])
|
||||||
else:
|
else:
|
||||||
first_trigger_type = "action_command"
|
first_trigger_type = "action_command"
|
||||||
first_trigger_prefix = "ACTION"
|
first_trigger_prefix = "ACTION"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user