mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 18:59:19 +00:00
Fixed activity not showing after bot starts up
This commit is contained in:
+8
-3
@@ -26,10 +26,9 @@ export default class Core extends DiscordModule {
|
|||||||
Cache.updateGuildsCache();
|
Cache.updateGuildsCache();
|
||||||
}, 5 * 60 * 1000);
|
}, 5 * 60 * 1000);
|
||||||
|
|
||||||
|
this.setActivity();
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
DiscordProvider.client.user!.setActivity('for your heart 💖', {
|
this.setActivity();
|
||||||
type: 'COMPETING'
|
|
||||||
});
|
|
||||||
}, 5 * 60 * 1000);
|
}, 5 * 60 * 1000);
|
||||||
|
|
||||||
Logger.info('Core started successfully');
|
Logger.info('Core started successfully');
|
||||||
@@ -46,4 +45,10 @@ export default class Core extends DiscordModule {
|
|||||||
|
|
||||||
await Cache.updateGuildCache(guild.id);
|
await Cache.updateGuildCache(guild.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private setActivity() {
|
||||||
|
DiscordProvider.client.user!.setActivity('for your heart 💖', {
|
||||||
|
type: 'COMPETING'
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user