Allow using whole categories

This commit is contained in:
Christopher Cookman 2023-03-09 08:19:28 -07:00
parent 36434bdb86
commit 799412deab
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -108,7 +108,7 @@ client.on('interactionCreate', async (interaction) => {
});
client.on('messageCreate', async (message) => {
if (!config.discord.authorized_channels.includes(message.channelId)) return; // Only allow messages in the authorized channels
if (!config.discord.authorized_channels.includes(message.channelId) && !config.discord.authorized_channels.includes(message.channel.parentId)) return; // Only allow messages in the authorized channels
if (message.author.bot) return;
if (message.content.startsWith("!!")) return; // So you can chat without the bot replying
// If the session doesn't exist, create it