2019-11-13 21:12:14 +00:00
|
|
|
const { log } = require('../utils');
|
2019-11-11 22:43:00 +00:00
|
|
|
const config = require('../config');
|
|
|
|
const blapi = require('blapi');
|
|
|
|
//blapi.setLogging(true);
|
|
|
|
|
|
|
|
function randomStatus(client) {
|
2019-11-13 21:12:14 +00:00
|
|
|
const States = [
|
|
|
|
{
|
2019-11-12 08:19:56 +00:00
|
|
|
activity: {
|
|
|
|
name: 'server fans whirr 💨',
|
|
|
|
type: 'LISTENING'
|
|
|
|
},
|
|
|
|
status: 'online'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
activity: {
|
2019-11-13 21:12:14 +00:00
|
|
|
name: 'True Damage - GIANTS',
|
2019-11-12 08:19:56 +00:00
|
|
|
type: 'LISTENING'
|
|
|
|
},
|
|
|
|
status: 'online'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
activity: {
|
2019-11-13 21:12:14 +00:00
|
|
|
name: `${client.guilds.size} Servers -w-`,
|
2019-11-12 08:19:56 +00:00
|
|
|
type: 'WATCHING'
|
|
|
|
},
|
|
|
|
status: 'online'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
activity: {
|
|
|
|
name: 'Δ & ♫',
|
|
|
|
type: 'LISTENING'
|
|
|
|
},
|
|
|
|
status: 'online'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
activity: {
|
|
|
|
name: `'help | thaldr.in`,
|
|
|
|
type: 'WATCHING'
|
|
|
|
},
|
|
|
|
status: 'online'
|
|
|
|
}
|
2019-11-11 22:43:00 +00:00
|
|
|
// { game: { name: `over ${thal.users.get('318044130796109825').username}~`, type: 'WATCHING' }, status: 'dnd' }
|
|
|
|
];
|
|
|
|
let status = States[~~(Math.random() * States.length)];
|
|
|
|
return client.user.setPresence(status);
|
|
|
|
}
|
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();
|
2019-11-11 22:43:00 +00:00
|
|
|
randomStatus(client);
|
|
|
|
setInterval(() => {
|
|
|
|
randomStatus(client);
|
|
|
|
}, 60000);
|
2019-11-10 08:42:09 +00:00
|
|
|
}
|
2019-11-13 21:12:14 +00:00
|
|
|
};
|