forgot a status.

This commit is contained in:
ry 2020-01-09 18:41:29 +01:00
parent 0ddc8e064f
commit 9500bc3a45
2 changed files with 109 additions and 111 deletions

View file

@ -17,7 +17,7 @@ module.exports = {
log.hasStarted();
status.randomStatus(client)
setInterval(() => {
randomStatus(client);
status.randomStatus(client);
}, 60000);
}
};

View file

@ -1,3 +1,4 @@
function randomStatus(client) {
const States = [{
activity: {
name: 'server fans whirr 💨',
@ -105,9 +106,6 @@ const States = [{
}
// { game: { name: `over ${thal.users.get('318044130796109825').username}~`, type: 'WATCHING' }, status: 'dnd' }
];
function randomStatus(client) {
let status = States[~~(Math.random() * States.length)];
return client.user.setPresence(status);
}
@ -118,6 +116,6 @@ module.exports = {
playing: "PLAYING",
watching: "WATCHING",
listening: "LISTENING",
streaming: "STREAMING";
streaming: "STREAMING",
randomStatus
};