Merge branch 'dev' into 'main'
Updating status changer and See merge request illegitimate/illegitimate-bot!57
This commit is contained in:
9
config/statuses.json
Normal file
9
config/statuses.json
Normal file
@@ -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 }
|
||||
]
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user