api #4
This commit is contained in:
3
index.js
3
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
|
||||
|
||||
Reference in New Issue
Block a user