mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-11 06:00:59 -05:00
better
This commit is contained in:
parent
03a25ed8b2
commit
0c48f1a48a
@ -97,10 +97,8 @@ class BotPrerun():
|
||||
hyphen_args = []
|
||||
trigger_args_unhyphend = []
|
||||
for worditem in trigger_args_part:
|
||||
if str(worditem).startswith("--"):
|
||||
hyphencom = worditem[2:]
|
||||
if hyphencom in valid_hyphen_args:
|
||||
hyphen_args.append(hyphencom)
|
||||
if str(worditem).startswith("--") and worditem[2:] in valid_hyphen_args:
|
||||
hyphen_args.append(worditem[2:])
|
||||
else:
|
||||
trigger_args_unhyphend.append(worditem)
|
||||
if len(hyphen_args):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user