Random-Stuff icon indicating copy to clipboard operation
Random-Stuff copied to clipboard

Line 7

Open Artemis5208 opened this issue 5 years ago • 1 comments

When I try to run the file, this comes up:

Traceback (most recent call last): File "/home/daniel/discordclock.py", line 7, in distoken = Njk3MDI5NDA1Mzg1NDI0OTM2.Xox(rest of my token, not putting it here) NameError: name 'Njk3MDI5NDA1Mzg1NDI0OTM2' is not defined

Any suggestions? If not could you make your bot public because it's a really good idea and I really want to use it on my servers!

Artemis5208 avatar Apr 07 '20 10:04 Artemis5208

Your token should be a string. It is being interpreted as a variable. Wrap your token in double-quotes. Example:

distoken = "abcdefg12345"

Also, consider replacing that token- you shouldn't be sharing any part of a secret token. It's long for a reason.

JengaReinwolf avatar Dec 28 '20 03:12 JengaReinwolf