1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 09:53:17 +00:00

Update ready.js

This commit is contained in:
MatteZ02 2020-02-27 08:32:06 +02:00
parent 7ba27dfbcf
commit 08a0adb3dd

View File

@ -25,9 +25,12 @@ module.exports = {
client.user.setStatus('online'); client.user.setStatus('online');
const dbl = new DBL(client.config.dblKey, client); const dbl = new DBL(client.config.dblKey, client);
if (client.config.dblApi && !client.config.devMode) { if (client.config.dblApi && !client.config.devMode) {
dbl.on('posted', () => {
console.log('Server count posted!');
});
dbl.on('error', error => { dbl.on('error', error => {
console.log('Error with DBL: ' + error); console.log('Error with DBL: ' + error);
}) });
dbl.postStats(client.guilds.size); dbl.postStats(client.guilds.size);
} }
console.log('- Activated -'); console.log('- Activated -');