Skip to content

Commit

Permalink
funny bot status
Browse files Browse the repository at this point in the history
  • Loading branch information
mirdukkkkk committed Feb 14, 2024
1 parent 0ee4231 commit d7e8b2e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/listeners/ReadyListener.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
const PixelListener = require('../structures/PixelListener');
const BanRemoverService = require('../services/BanRemoverService');

const statuses = [
['pixelbattle.fun', 0],
['за холстом', 3],
['брызги краски', 2],
['таймлапсы', 3]
];
let x = 0;

class ReadyListener extends PixelListener {
constructor() {
super('ReadyListener', { event: 'ready' });
Expand All @@ -10,7 +18,12 @@ class ReadyListener extends PixelListener {
await client.guilds.cache.get(client.guilds.cache.first().id).members.fetch().then(() => console.log('* [CACHE] The list of players has been updated'));
await new BanRemoverService(client).runClearance();

client.user.setPresence({ status: 'idle', activities: [{ name: 'pixelbattle.fun' }] });
setInterval(() => {
client.user.setPresence({ status: 'idle', activities: [{ name: statuses[x][0], type: statuses[x][1] }] });
x++;
x %= statuses.length;
}, 20000);

console.log('* [ROOT] Bot launched');
}
}
Expand Down

0 comments on commit d7e8b2e

Please sign in to comment.