Skip to content
Sign upLog in
← Back to Community
Can't Turn off Discord Bot!
Profile icon
DiordnasDarkunn

I wrote a bot in Python, following the tutorial in last week's newsletter, but I'm having some problems.
I closed the tab with my repl, opened it later, edited it, and hit play, but then the discord bot started doing things twice, presumably because it was running two instances of the code. I can't edit or disable the old version of the code! How do I shut it off?

Answered by Mosrod [earned 5 cycles]
View Answer
Voters
Profile icon
SURYANKKHANDAIK
Profile icon
MAORtk123
Profile icon
imaginesyke
Profile icon
HATERVACER
Profile icon
DiordnasDarkunn
Comments
hotnewtop
Profile icon
Mosrod

Generate a new token and change the code to the new token. Make sure you do not share your token by putting the token in a .env file.

Profile icon
DiordnasDarkunn

@Mosrod
Good idea! I'll be trying this later!

Profile icon
EnzoSucks

i cant turn on my discord bot and i alredy tried using a new token in a .env file. (i did it in python btw)

Profile icon
T4N3

Hi, I don't think this is just with repl.it, I am having the exact same problem with my javascript bot that I run of my computer. I think its most likely to be a problem with Discord.

Profile icon
timmy_i_chen

@DiordnasDarkunn
The fix for this bug is being pushed out now - shouldn't be a problem after today :) Just curious, by the way, how did you find out about Repl.it?

Profile icon
DiordnasDarkunn

@timmy_i_chen Thanks for fixing it!
In response to your sneaky survey, either I saw a friend using it, or I was looking for LOLcode interpreters - it's so long ago I don't remember.

Profile icon
timmy_i_chen

But in general, this should not be happen in Repl.it and we'll be fixing this soon. Sorry for the trouble.