Share your repls and programming experiences

← Back to all posts
Fangtastic Dice Bot
Hobbit14

Just a quick and dirty dice bot I wrote in Python, I know it's ugly but it's my first foray in to Python. I'll probably look back at this in a month and wonder what the heck I was thinking.

Voters
ImBoredAndItsSummer
Hobbit14
Comments
hotnewtop
Carnage498

i'm getting a KeyError: 'TOKEN'
Also i agree with your statement cause i made a working one a long time ago when i was learning python. It came handy in like one thing but otherwise yea it was pretty lame

Hobbit14

@Carnage498 So the KeyError:'TOKEN' is because I have an environmental variable, aka a secret variable. This "variable" is the access key for the bot this programs. I can't just hand that out otherwise anyone could hack my bot. To make your own, simple create your own discord bot, copy it's key, create an environmental variable called TOKEN and you should be good to go.

Carnage498