From 841edee464df3df1d102020648db6d50ab7c47f6 Mon Sep 17 00:00:00 2001 From: Emily J Date: Sat, 10 Oct 2020 11:38:29 +1100 Subject: [PATCH] changes due to new redis module --- bot/commands/Test/retrieve.js | 2 +- bot/index.js | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/bot/commands/Test/retrieve.js b/bot/commands/Test/retrieve.js index 2c67f70..054588a 100644 --- a/bot/commands/Test/retrieve.js +++ b/bot/commands/Test/retrieve.js @@ -14,7 +14,7 @@ class Retrieve extends Command { if (!args[0]) return message.channel.send("You didn't specify what key to retrieve!") try { - const res = await this.client.db.guildGet(message.guild.id, args[0]) + const res = await this.client.db.getGuildKey(message.guild.id, args[0]) message.channel.send(res) } catch (err) { return message.channel.send(err) diff --git a/bot/index.js b/bot/index.js index 71d1e43..7ffc6ac 100644 --- a/bot/index.js +++ b/bot/index.js @@ -50,9 +50,6 @@ const init = async () => { await client.commandHandler.loadAll(); await client.eventHandler.loadAll(); - // Connect to Redis database - await client.db.init(); - if (client.dev === true) { client.logger.warn("Development mode is on. Some features (such as Sentry) are disabled."); client.login(client.config.devtoken);