thaldrin/DiscordEvents/ready.js

23 lines
419 B
JavaScript
Raw Normal View History

const {
log,
status
} = require('../utils');
2019-11-11 22:43:00 +00:00
const config = require('../config');
const blapi = require('blapi');
//blapi.setLogging(true);
2019-10-14 11:19:41 +00:00
module.exports = {
2019-11-10 08:42:09 +00:00
name: 'ready',
run: async (client) => {
2019-11-13 21:12:14 +00:00
if (client.user.id === '434662676547764244') {
blapi.handle(client, config.apis);
}
2019-11-10 08:42:09 +00:00
log.hasStarted();
status.randomStatus(client)
2019-11-11 22:43:00 +00:00
setInterval(() => {
2020-01-09 17:41:29 +00:00
status.randomStatus(client);
2019-11-11 22:43:00 +00:00
}, 60000);
2019-11-10 08:42:09 +00:00
}
};