Discord Bot Goes Offline After An Hour Even Though Uptime is Hooked Up
[deleted]
Hi there! I have been working on a discord bot, and after an hour, instead of staying online, the bot will just go offline even though I have it linked to Uptimerobot. Is there anything that I’m doing wrong?
Voters
Would you mind trying this?
In your server.js: put this:
And at the top of index.js, put this:
And at the bottem or index.js, put this before the client.login():
keepAlive();
If this works you can mark this answer as correct. If not tell me.
Source: https://repl.it/talk/learn/Hosting-discordjs-bots-on-replit-Works-for-both-discordjs-and-Eris/11027
Uhh you just totally messed up your files, delete everything in index.js and copy everything in server.js over into index.js. After that, copy everything from server stuff.js into server.js and delete server stuff.js
@JollyJack8Delete everything in server.js, and then get rid of line 114 in index.js. Then, Do what I said in my first comment.
@JollyJack8