Discord bot (node.js repl) keeps logging out, but repl keeps running

I started using replit just this weekend. I’ve got a repl set up as a basic Discord bot (using node JS) which has been working great with one minor problem – the bot logs out of Discord after several hours of running, even as the repl continues to run.

I followed the steps outlined in the relevant tutorial to set up the bot. And everything works for a few hours, and then suddenly, the bot shows as offline in Discord. The repl shows as running, and the ping page is rendering properly – it’s just the discord bit that’s not working.

I’ve got the repl set to “Always On,” and I’m using Uptime Robot to continually ping the tool to prevent it from timing out. Potentially notable: once the bot has logged out of Discord, the only way for me to get it back is to enter “kill 1” in the console.

Any suggestions?

One more bit of potential info: I found the following log data for the repl, which implies that something is going into sleep mode. Any way around this?

Jan 09 2023 06:11:21 PM GMT-6
| awake
Jan 09 2023 06:11:21 PM GMT-6
| awake
Jan 09 2023 06:11:18 PM GMT-6
| awake
Jan 09 2023 06:11:16 PM GMT-6
| asleep
Jan 09 2023 06:11:16 PM GMT-6
| asleep
Jan 09 2023 05:41:50 PM GMT-6
| awake
Jan 09 2023 05:41:50 PM GMT-6
| awake
Jan 09 2023 05:41:48 PM GMT-6
| awake
Jan 09 2023 05:41:42 PM GMT-6
| asleep
Jan 09 2023 05:41:42 PM GMT-6
| asleep
Jan 09 2023 11:20:14 AM GMT-6
| awake
Jan 09 2023 11:20:13 AM GMT-6
| awake
Jan 09 2023 11:13:11 AM GMT-6
| awake
Jan 09 2023 11:13:11 AM GMT-6
| awake
Jan 09 2023 11:09:22 AM GMT-6
| awake
Jan 09 2023 11:09:22 AM GMT-6
| awake
Jan 09 2023 10:36:46 AM GMT-6
| awake
Jan 09 2023 10:36:46 AM GMT-6
| awake
Jan 09 2023 10:16:27 AM GMT-6
| awake
Jan 09 2023 10:16:27 AM GMT-6
| awake
Jan 09 2023 10:16:25 AM GMT-6
| asleep
Jan 09 2023 10:16:25 AM GMT-6
| awake
Jan 09 2023 10:16:22 AM GMT-6
| asleep
Jan 09 2023 10:16:22 AM GMT-6
| asleep
Jan 09 2023 10:13:58 AM GMT-6
| awake
Jan 09 2023 10:13:58 AM GMT-6
| awake
Jan 09 2023 10:11:32 AM GMT-6
| awake

Please refer to this topic Discord Ratelimit

Thank you! Hopefully a fix is identified soon.

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