From e57660225228a8841fa378ab661ee831e085ed9b Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 1 May 2024 23:25:36 -0400 Subject: [PATCH] Adjust Redis --- Xiao.js | 3 +++ structures/Client.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Xiao.js b/Xiao.js index 732f7b40..80496e26 100644 --- a/Xiao.js +++ b/Xiao.js @@ -67,6 +67,9 @@ client.registry client.on('ready', async () => { client.logger.info(`[READY] Logged in as ${client.user.tag}! ID: ${client.user.id}`); + // Set up Redis + client.redis.start(); + // Make temp directories const tmpFolderExists = await checkFileExists(path.join(__dirname, 'tmp')); if (!tmpFolderExists) await mkdir(path.join(__dirname, 'tmp')); diff --git a/structures/Client.js b/structures/Client.js index be13bf03..8e0af434 100644 --- a/structures/Client.js +++ b/structures/Client.js @@ -23,7 +23,7 @@ module.exports = class XiaoClient extends CommandClient { ) }); this.fonts = new FontManager(this); - this.redis = Redis ? Redis.db : null; + this.redis = Redis.db; this.timers = new TimerManager(this); this.pokemon = new PokemonStore(); this.dispatchers = new Map();