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