From b84e4a20eb22d9c227a1a7187cf3a416a16cab99 Mon Sep 17 00:00:00 2001 From: jakubmanczak Date: Thu, 6 May 2021 18:47:46 +0200 Subject: [PATCH] api #4 --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 2e40e4e..8e3bc00 100644 --- a/index.js +++ b/index.js @@ -125,7 +125,7 @@ client.on('message', (message) => { } }); -client.login(process.env.BOT_TOKEN); +client.login(process.env.BOT_TOKEN).then(() => getStatus()); // Funne API hehehehe const http = require('http'); @@ -162,7 +162,6 @@ const getStatus = () => { }; }; -getStatus(); setInterval(getStatus, 30000); http