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 = {
|
module.exports = {
|
||||||
name: 'status',
|
name: 'status',
|
||||||
@@ -6,31 +6,28 @@ module.exports = {
|
|||||||
type: 'ready',
|
type: 'ready',
|
||||||
|
|
||||||
/** @param { import('discord.js').Client } client */
|
/** @param { import('discord.js').Client } client */
|
||||||
execute(client) {
|
|
||||||
client.user.setActivity(
|
|
||||||
{ name: "over the Illegitimate Server", type: ActivityType.Watching }
|
|
||||||
);
|
|
||||||
|
|
||||||
const activities = [
|
execute(client) {
|
||||||
{ name: "for Martina's return", type: ActivityType.Watching },
|
|
||||||
{ name: "w vri's feelings", type: ActivityType.Playing },
|
// Playing 0
|
||||||
{ name: "urCryhard steal finals again", type: ActivityType.Watching },
|
// Streaming 1
|
||||||
{ name: "with Perlcence the AI", type: ActivityType.Playing },
|
// Listening 2
|
||||||
{ name: "with ur mom in my bed", type: ActivityType.Playing },
|
// Watching 3
|
||||||
{ name: "with Jone the idiot", type: ActivityType.Playing },
|
// Custom 4
|
||||||
{ name: "over the Illegitimate Server", type: ActivityType.Watching }
|
// Competing 5
|
||||||
];
|
|
||||||
|
client.user.setActivity(
|
||||||
|
{ name: statuses[0].name, type: 3}
|
||||||
|
);
|
||||||
|
|
||||||
let i = 0;
|
let i = 0;
|
||||||
setInterval(() =>
|
setInterval(() =>
|
||||||
client.user.setActivity(
|
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