forgot a status.
This commit is contained in:
parent
0ddc8e064f
commit
9500bc3a45
2 changed files with 109 additions and 111 deletions
|
@ -17,7 +17,7 @@ module.exports = {
|
||||||
log.hasStarted();
|
log.hasStarted();
|
||||||
status.randomStatus(client)
|
status.randomStatus(client)
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
randomStatus(client);
|
status.randomStatus(client);
|
||||||
}, 60000);
|
}, 60000);
|
||||||
}
|
}
|
||||||
};
|
};
|
|
@ -1,3 +1,4 @@
|
||||||
|
function randomStatus(client) {
|
||||||
const States = [{
|
const States = [{
|
||||||
activity: {
|
activity: {
|
||||||
name: 'server fans whirr 💨',
|
name: 'server fans whirr 💨',
|
||||||
|
@ -105,9 +106,6 @@ const States = [{
|
||||||
}
|
}
|
||||||
// { game: { name: `over ${thal.users.get('318044130796109825').username}~`, type: 'WATCHING' }, status: 'dnd' }
|
// { game: { name: `over ${thal.users.get('318044130796109825').username}~`, type: 'WATCHING' }, status: 'dnd' }
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
function randomStatus(client) {
|
|
||||||
let status = States[~~(Math.random() * States.length)];
|
let status = States[~~(Math.random() * States.length)];
|
||||||
return client.user.setPresence(status);
|
return client.user.setPresence(status);
|
||||||
}
|
}
|
||||||
|
@ -118,6 +116,6 @@ module.exports = {
|
||||||
playing: "PLAYING",
|
playing: "PLAYING",
|
||||||
watching: "WATCHING",
|
watching: "WATCHING",
|
||||||
listening: "LISTENING",
|
listening: "LISTENING",
|
||||||
streaming: "STREAMING";
|
streaming: "STREAMING",
|
||||||
randomStatus
|
randomStatus
|
||||||
};
|
};
|
Loading…
Reference in a new issue