Help bot is broken

Question:
It doesn’t reply to my random command :sob: :sob:
Repl link:
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}")
1 Like

Hey @SnakeyKing - the repl link is giving me a 404 error. Is the repl private?

1 Like

No, I deleted it since no one was helping me

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.