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(); log.hasStarted();
status.randomStatus(client) status.randomStatus(client)
setInterval(() => { setInterval(() => {
randomStatus(client); status.randomStatus(client);
}, 60000); }, 60000);
} }
}; };

View file

@ -1,113 +1,111 @@
const States = [{
activity: {
name: 'server fans whirr 💨',
type: 'LISTENING'
},
status: 'online'
},
{
activity: {
name: 'True Damage - GIANTS',
type: 'LISTENING'
},
status: 'online'
},
{
activity: {
name: `${client.guilds.size} Servers -w-`,
type: 'WATCHING'
},
status: 'online'
},
{
activity: {
name: 'Δ & ♫',
type: 'LISTENING'
},
status: 'online'
},
{
activity: {
name: `'help | thaldr.in`,
type: 'WATCHING'
},
status: 'online'
},
{
activity: {
name: `Linux Servers`,
type: 'WATCHING'
},
status: 'online'
},
{
activity: {
name: `e621 Videos`,
type: 'WATCHING'
},
status: 'online'
},
{
activity: {
name: `WannaCry`,
type: 'WATCHING'
},
status: 'online'
},
{
activity: {
name: `the Blockchain!`,
type: 'WATCHING'
},
status: 'online'
},
{
activity: {
name: `something... ;3`,
type: 'WATCHING'
},
status: 'online'
},
{
activity: {
name: `Skynet`,
type: 'WATCHING'
},
status: 'online'
},
{
activity: {
name: `Half Life`,
type: 'PLAYING'
},
status: 'online'
},
{
activity: {
name: `Half Life 2`,
type: 'PLAYING'
},
status: 'online'
},
{
activity: {
name: `Portal`,
type: 'PLAYING'
},
status: 'online'
},
{
activity: {
name: `Portal 2`,
type: 'PLAYING'
},
status: 'online'
}
// { game: { name: `over ${thal.users.get('318044130796109825').username}~`, type: 'WATCHING' }, status: 'dnd' }
];
function randomStatus(client) { function randomStatus(client) {
const States = [{
activity: {
name: 'server fans whirr 💨',
type: 'LISTENING'
},
status: 'online'
},
{
activity: {
name: 'True Damage - GIANTS',
type: 'LISTENING'
},
status: 'online'
},
{
activity: {
name: `${client.guilds.size} Servers -w-`,
type: 'WATCHING'
},
status: 'online'
},
{
activity: {
name: 'Δ & ♫',
type: 'LISTENING'
},
status: 'online'
},
{
activity: {
name: `'help | thaldr.in`,
type: 'WATCHING'
},
status: 'online'
},
{
activity: {
name: `Linux Servers`,
type: 'WATCHING'
},
status: 'online'
},
{
activity: {
name: `e621 Videos`,
type: 'WATCHING'
},
status: 'online'
},
{
activity: {
name: `WannaCry`,
type: 'WATCHING'
},
status: 'online'
},
{
activity: {
name: `the Blockchain!`,
type: 'WATCHING'
},
status: 'online'
},
{
activity: {
name: `something... ;3`,
type: 'WATCHING'
},
status: 'online'
},
{
activity: {
name: `Skynet`,
type: 'WATCHING'
},
status: 'online'
},
{
activity: {
name: `Half Life`,
type: 'PLAYING'
},
status: 'online'
},
{
activity: {
name: `Half Life 2`,
type: 'PLAYING'
},
status: 'online'
},
{
activity: {
name: `Portal`,
type: 'PLAYING'
},
status: 'online'
},
{
activity: {
name: `Portal 2`,
type: 'PLAYING'
},
status: 'online'
}
// { game: { name: `over ${thal.users.get('318044130796109825').username}~`, type: 'WATCHING' }, status: 'dnd' }
];
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
}; };