1
0
Fork 0

exposeStats parameter

akairo
loicbersier 5 years ago
parent 325687a244
commit 520cfd14b8

@ -7,6 +7,7 @@
"ownerID": "Id of the owner ( probably you )", //optional but recommended
"statsChannel": "channel where the bot send his stats", //optional but recommended
"supportServer": "Invite to the support server of the bot", //optional but recommended
"exposeStats": true, // False or true, it open a webserver that expose various stats about the bot
"feedbackChannel": "id of the channel where the feedback goes", //optional but recommended
"yandexAPI": "yandex api key", //optional | for the translate command
"acoustID": "acoust api key", //optional | for the music match command

@ -2,7 +2,7 @@ const { Listener } = require('discord-akairo');
const akairoVersion = require('discord-akairo').version;
const djsVersion = require('discord.js').version;
const pjson = require('../../package.json');
const { prefix, statsChannel, ownerID, supportServer } = require('../../config.json');
const { prefix, statsChannel, ownerID, supportServer, exposeStats } = require('../../config.json');
const game = require('../../json/status/playing.json');
const watch = require('../../json/status/watching.json');
@ -73,6 +73,7 @@ class ReadyListener extends Listener {
*/
// Expose stats
if (exposeStats) {
const port = 3000;
const http = require('http');
@ -111,6 +112,8 @@ class ReadyListener extends Listener {
}
});
console.log(`Exposing stats on port ${port}`);
}
console.log('===========[ READY ]===========');
}

Loading…
Cancel
Save