It doesn’t reply to my random
command
https://replit.com/@SnakeyKing/BlueBot#main.py
elif toks[0].lower() == 'random':
if len(toks) != 3:
error(f'\'random\' command takes 2 arguments, but {len(toks) - 1} was given')
else:
try: int(toks[1])
except ValueError:
error('argument 1 of \'random\' command must be an integer')
continue
try: int(toks[2])
except ValueError:
error('argument 2 of \'random\' command must be an integer')
continue
random_num = randint(int(toks[1]), int(toks[2]))
respond(f'Your random number is {random_num}')