mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Activities for bots can't have emoji :(
This commit is contained in:
@@ -119,11 +119,11 @@ client.on('clientReady', async () => {
|
||||
}
|
||||
|
||||
// Interval to change activity every minute
|
||||
client.user.setActivity('Good morning, world!', { type: ActivityType.Custom, state: '☀️' });
|
||||
client.user.setActivity('Good morning, world!', { type: ActivityType.Custom });
|
||||
setInterval(() => {
|
||||
const activity = client.activities[Math.floor(Math.random() * client.activities.length)];
|
||||
const text = typeof activity.text === 'function' ? activity.text(client) : activity.text;
|
||||
client.user.setActivity(text, { type: activity.type, state: activity.emoji });
|
||||
client.user.setActivity(text, { type: activity.type });
|
||||
}, 60000);
|
||||
|
||||
// Set up disabled commands
|
||||
|
||||
Reference in New Issue
Block a user