mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Adjust Redis
This commit is contained in:
@@ -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'));
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user