prevent usage in support server

This commit is contained in:
SowinskiBraeden committed 2022-07-05 12:54:31 -07:00
1 parent 159728dc2b
commit 78f090edb5
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ module.exports = {
Version: "0.1.0", Version: "0.1.0",
Admins: ["362791661274660874"], // Admins of the bot Admins: ["362791661274660874"], // Admins of the bot
DefaultPrefix: "?", DefaultPrefix: "?",
SupportServer: "https://discord.gg/UnxZtEZ2", //Support Server Link SupportServer: "https://discord.gg/YCXhvy9uZw", //Support Server Link
Token: process.env.token || "", //Discord Bot Token Token: process.env.token || "", //Discord Bot Token
Scopes: ["identify", "guilds", "applications.commands"], //Discord OAuth2 Scopes Scopes: ["identify", "guilds", "applications.commands"], //Discord OAuth2 Scopes
IconURL: "", IconURL: "",
+1
View File
@@ -6,6 +6,7 @@
*/ */
module.exports = async (client, message) => { module.exports = async (client, message) => {
if (message.guild.id === client.config.serverID) return;
if (message.author.bot || message.channel.type === "dm") return; if (message.author.bot || message.channel.type === "dm") return;
let GuildDB = await client.GetGuild(message.guild.id); let GuildDB = await client.GetGuild(message.guild.id);