Redis Timer System

This commit is contained in:
Dragon Fire
2020-11-19 17:03:56 -05:00
parent 480e736b53
commit 8cdba0ff30
8 changed files with 81 additions and 12 deletions
+4 -1
View File
@@ -50,9 +50,12 @@ client.registry
})
.registerCommandsIn(path.join(__dirname, 'commands'));
client.on('ready', () => {
client.on('ready', async () => {
client.logger.info(`[READY] Logged in as ${client.user.tag}! ID: ${client.user.id}`);
// Set up existing timers
await client.timers.fetchAll();
// Push client-related activities
client.activities.push(
{ text: () => `${formatNumber(client.guilds.cache.size)} servers`, type: 'WATCHING' },