From a653b8d394780504661deec97f75e424896af782 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Mon, 23 Jan 2023 15:41:22 -0800 Subject: [PATCH] 3.1.7 bug fixes --- events/ready.js | 2 +- structures/LinesPoliceCadBot.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/events/ready.js b/events/ready.js index 1090831..cd7f75b 100644 --- a/events/ready.js +++ b/events/ready.js @@ -6,5 +6,5 @@ module.exports = async (client) => { ) client.log(`Successfully Logged in as ${client.user.tag}`); // You can change the text if you want, but DO NOT REMOVE "client.user.tag" client.log(`Ready to serve in ${client.channels.cache.size} channels on ${client.guilds.cache.size} servers, for a total of ${client.users.cache.size} users.`) - client.RegisterSlashCommands(); + // client.RegisterSlashCommands(); }; \ No newline at end of file diff --git a/structures/LinesPoliceCadBot.js b/structures/LinesPoliceCadBot.js index 7c03ee4..3c7bddb 100644 --- a/structures/LinesPoliceCadBot.js +++ b/structures/LinesPoliceCadBot.js @@ -86,7 +86,7 @@ class LinesPoliceCadBot extends Client { } } - if (databaselogslogs.attempts >= 5) { + if (databaselogs.attempts >= 5) { this.error('Failed to connect to mongodb after multiple attempts'); return; // prevent further attempts }