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