changes due to new redis module
This commit is contained in:
parent
faa168d07c
commit
841edee464
2 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue