diff --git a/bot/index.js b/bot/index.js index a93f71f..d1606d2 100644 --- a/bot/index.js +++ b/bot/index.js @@ -18,6 +18,10 @@ const client = new Client({ GatewayIntentBits.MessageContent, ], }); +const DDRNG_GUILD_ID = 148849688722800640; +const DDRNG_ALLOWED_CHANNELS = [ + 496061346446835732, 499656239572058132, 771329671953776661, +]; client.commands = new Collection(); client.ownerID = 263247134147608578; client.prefix = prefix; @@ -71,7 +75,11 @@ client.on(Events.MessageCreate, async (message) => { }); if (message.content.indexOf(prefix) !== 0) return; - + if ( + message.guildId == DDRNG_GUILD_ID && + !DDRNG_ALLOWED_CHANNELS.find((id) => id == message.channelId) + ) + return; const args = message.content.slice(prefix.length).trim().split(/ +/g); const command = args.shift().toLowerCase();