17 lines
435 B
JavaScript
17 lines
435 B
JavaScript
const CompilerClient = require('./struct/CompilerClient');
|
|
const config = require('../config.json');
|
|
const client = new CompilerClient(config);
|
|
|
|
client.once('ready', () => {
|
|
// eslint-disable-next-line no-console
|
|
console.log('[Info] Compiler ready to go!');
|
|
});
|
|
|
|
client.on('ready', () => {
|
|
client.user.setPresence({
|
|
activity: { name: `${config.prefix} help` },
|
|
status: 'online'
|
|
});
|
|
});
|
|
|
|
client.start();
|