mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
Update Triggerargs
This commit is contained in:
parent
a939d29537
commit
e3f75d733c
@ -26,13 +26,10 @@ def sopel_triggerargs(bot, trigger, command_type='module_command'):
|
||||
triggerargs = spicemanip.main(trigger.args[1], 'create')
|
||||
triggerargs = spicemanip.main(triggerargs, 'create')
|
||||
|
||||
if command_type in ['module_command']:
|
||||
command = spicemanip.main(triggerargs, 1).lower()
|
||||
triggerargs = spicemanip.main(triggerargs, '2+', 'list')
|
||||
elif command_type in ['nickname_command']:
|
||||
command = spicemanip.main(triggerargs, 1).lower()[1:]
|
||||
if command_type in ['nickname_command']:
|
||||
command = spicemanip.main(triggerargs, 2).lower()
|
||||
triggerargs = spicemanip.main(triggerargs, '3+', 'list')
|
||||
elif command_type in ['prefix_command']:
|
||||
else:
|
||||
command = spicemanip.main(triggerargs, 1).lower()[1:]
|
||||
triggerargs = spicemanip.main(triggerargs, '2+', 'list')
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user