mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
test
This commit is contained in:
parent
2c795a1c41
commit
63ded5527b
@ -34,11 +34,12 @@ def bot_dictcom_process(bot, trigger, botcom):
|
||||
botcom.dict['args'] = spicemanip(botcom.dict['args'], '2+', 'list')
|
||||
|
||||
# This allows users to specify which reply by number by using an ! and a digit (first or last in string)
|
||||
botcom.dict["specified"] = None
|
||||
if botcom.dict["hyphen_arg"]:
|
||||
botcom.dict["specified"] = botcom.dict["hyphen_arg"]
|
||||
if str(botcom.dict["hyphen_arg"]).isdigit() or botcom.dict["hyphen_arg"] in [-1, 'random']:
|
||||
botcom.dict["specified"] = botcom.dict["hyphen_arg"]
|
||||
else:
|
||||
validspecifides = ['last', 'random', 'add', 'del', 'remove']
|
||||
botcom.dict["specified"] = None
|
||||
validspecifides = ['random', 'add', 'del', 'remove']
|
||||
argone = spicemanip(botcom.dict['args'], 1)
|
||||
if str(argone).startswith("--") and len(str(argone)) > 2:
|
||||
if SpiceBot.inlist(str(argone[2:]), validspecifides):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user