Discord bot scripts running "twice" ("2 bots at once")

I’m experiencing the same phenomenon.
If you update the code you’re currently editing, one is being processed as you modified it But The other one is handled with the old code, and the There’s no way to edit, delete or stop the old code.

Submit a ticket about this bug at here.

But maybe something is in your code is breaks and sends it twice.

How is that possible?

It can be a issue in your code. I guess, if not, there is a issue with maybe the bot is running on multiple sources.

have you been seeing anything in your project’s logs about the app taking too long to shut down?

I’m asking because I’ve been experiencing huge disk latencies on Glitch, and if your app gets stuck waiting for a disk access, it (i.e., libuv worker thread, I think) goes into uninterruptible sleep, such that Glitch wouldn’t be able to force-terminate it. I wonder if that leaves the rest of the process running, as Glitch spins up a new process after you change a file or something.

In that case, add watch.json. :slight_smile: