Dateien nach "handlers" hochladen

This commit is contained in:
2024-02-07 14:42:01 +00:00
parent 37c5104ac6
commit 986f766e8e
3 changed files with 45 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
const { default_prefix } = require('../config');
module.exports = async bot => {
console.log(`${bot.user.username} ist ab sofort verfügbar!`)
let totalUsers = bot.guilds.cache.reduce((acc, value) => acc + value.memberCount, 0)
var activities = [ `${bot.guilds.cache.size} servers`, `${totalUsers} users!` ], i = 0;
setInterval(() => bot.user.setActivity(`${default_prefix}help | ${activities[i++ % activities.length]}`, { type: "WATCHING" }),50000)
};