Give bot a presence

This commit is contained in:
1Computer1 2019-09-23 12:53:48 -04:00
parent d6907e1974
commit 91f5e9c8cd

View file

@ -1,5 +1,14 @@
const CompilerClient = require('./struct/CompilerClient'); const CompilerClient = require('./struct/CompilerClient');
const config = require('../config.json'); const config = require('../config.json');
const client = new CompilerClient(config); const client = new CompilerClient(config);
client.once('ready', () => console.log('Comp_iler ready to go!')); // eslint-disable-line no-console client.once('ready', () => {
client.user.setPresence({
activity: { name: '@Comp_iler help' },
status: 'online'
});
// eslint-disable-next-line no-console
console.log('Comp_iler ready to go!');
});
client.start(); client.start();