diff --git a/server.js b/server.js index 3aa1775..9f598c3 100644 --- a/server.js +++ b/server.js @@ -54,7 +54,10 @@ const bot = new Client({ intents: [ Partials.Message ] }); -bot.login(process.env.discord_token); +function login() +{ + bot.login(process.env.discord_token).catch(()=>{login()}); +} function connectToDB() {