diff --git a/config/statuses.json b/config/statuses.json new file mode 100644 index 0000000..19682a1 --- /dev/null +++ b/config/statuses.json @@ -0,0 +1,9 @@ +[ + { "name": "over the Illegitimate Server", "type": 3 }, + { "name": "for Martina's return", "type": 3 }, + { "name": "w vri's feelings", "type": 0 }, + { "name": "urCryhard steal finals again", "type": 3 }, + { "name": "with Perlcence the AI", "type": 0 }, + { "name": "with ur mom in my bed", "type": 0 }, + { "name": "with Jone the idiot", "type": 0 } +] diff --git a/events/ready/status.js b/events/ready/status.js index e361d25..d39ab32 100644 --- a/events/ready/status.js +++ b/events/ready/status.js @@ -1,4 +1,4 @@ -const { Events, ActivityType } = require('discord.js'); +const statuses = require('../../config/statuses.json') module.exports = { name: 'status', @@ -6,31 +6,28 @@ module.exports = { type: 'ready', /** @param { import('discord.js').Client } client */ - execute(client) { - client.user.setActivity( - { name: "over the Illegitimate Server", type: ActivityType.Watching } - ); - const activities = [ - { name: "for Martina's return", type: ActivityType.Watching }, - { name: "w vri's feelings", type: ActivityType.Playing }, - { name: "urCryhard steal finals again", type: ActivityType.Watching }, - { name: "with Perlcence the AI", type: ActivityType.Playing }, - { name: "with ur mom in my bed", type: ActivityType.Playing }, - { name: "with Jone the idiot", type: ActivityType.Playing }, - { name: "over the Illegitimate Server", type: ActivityType.Watching } - ]; + execute(client) { + + // Playing 0 + // Streaming 1 + // Listening 2 + // Watching 3 + // Custom 4 + // Competing 5 + + client.user.setActivity( + { name: statuses[0].name, type: 3} + ); let i = 0; setInterval(() => client.user.setActivity( - activities[i++ % activities.length] + statuses[i = 1, i++ % statuses.length] ), - 1000 * 60 * 30 + 1000 * 60 * 10 ) - client.on(Events.ClientReady, () => { - client.user.setStatus('dnd'); - }); + client.user.setStatus('dnd'); } }