Adjust Redis

This commit is contained in:
Dragon Fire
2024-05-01 23:25:36 -04:00
parent a58dd4fca6
commit e576602252
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -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'));
+1 -1
View File
@@ -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();