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