From 78f090edb532c26b41b1106fa4bc3e8bda561a1d Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Tue, 5 Jul 2022 12:54:31 -0700 Subject: [PATCH] prevent usage in support server --- config/config.js | 2 +- events/messageCreate.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/config.js b/config/config.js index 99090f2..7840fb8 100644 --- a/config/config.js +++ b/config/config.js @@ -3,7 +3,7 @@ module.exports = { Version: "0.1.0", Admins: ["362791661274660874"], // Admins of the bot DefaultPrefix: "?", - SupportServer: "https://discord.gg/UnxZtEZ2", //Support Server Link + SupportServer: "https://discord.gg/YCXhvy9uZw", //Support Server Link Token: process.env.token || "", //Discord Bot Token Scopes: ["identify", "guilds", "applications.commands"], //Discord OAuth2 Scopes IconURL: "", diff --git a/events/messageCreate.js b/events/messageCreate.js index d82ee34..1b1d478 100644 --- a/events/messageCreate.js +++ b/events/messageCreate.js @@ -6,6 +6,7 @@ */ module.exports = async (client, message) => { + if (message.guild.id === client.config.serverID) return; if (message.author.bot || message.channel.type === "dm") return; let GuildDB = await client.GetGuild(message.guild.id);