mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Add Servers/Commands Activities
This commit is contained in:
@@ -48,6 +48,10 @@ client.registry
|
||||
|
||||
client.on('ready', () => {
|
||||
client.logger.info(`[READY] Logged in as ${client.user.tag}! ID: ${client.user.id}`);
|
||||
activities.push(
|
||||
{ text: `in ${client.guilds.cache.size} servers`, type: 'PLAYING' },
|
||||
{ text: `with ${client.registry.commands.size} commands`, type: 'PLAYING' }
|
||||
);
|
||||
client.setInterval(() => {
|
||||
const activity = activities[Math.floor(Math.random() * activities.length)];
|
||||
client.user.setActivity(activity.text, { type: activity.type });
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "114.2.0",
|
||||
"version": "114.2.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user