This commit is contained in:
deathbybandaid 2019-09-19 12:00:57 -04:00
parent ec240c8efb
commit 2c795a1c41

View File

@ -505,8 +505,12 @@ def trigger_hyphen_arg_handler(bot, trigger, botcom):
if not botcom.dict["hyphen_arg"]: if not botcom.dict["hyphen_arg"]:
return True return True
# include nonstock options here as well
elif str(botcom.dict["hyphen_arg"]).lower() in [command.lower() for command in botcom.dict["dict"]["nonstockoptions"]]:
return True
# handle numbered args # handle numbered args
if str(botcom.dict["hyphen_arg"]).isdigit() or botcom.dict["hyphen_arg"] in [-1, 'random']: elif str(botcom.dict["hyphen_arg"]).isdigit() or botcom.dict["hyphen_arg"] in [-1, 'random']:
return True return True
elif botcom.dict["hyphen_arg"] in ['check']: elif botcom.dict["hyphen_arg"] in ['check']: