diff --git a/src/events/client/messageCreate.js b/src/events/client/messageCreate.js index b9752bd..4b35d66 100644 --- a/src/events/client/messageCreate.js +++ b/src/events/client/messageCreate.js @@ -17,7 +17,8 @@ module.exports = { if (channelID !== banChannelID) return; // Ban user if they type in the channel - await message.member.ban({ reason: `Likely bot, typed in <#${process.env.DONT_TYPE_HERE_CHANNEL}>`, deleteMessageSeconds: 60 * 60 * 24 }); - await banLogChannel.send(`User <@${message.author.id}> has been banned for typing in <#${process.env.DONT_TYPE_HERE_CHANNEL}>.`); + await message.member.ban({ reason: `Likely bot, typed in honeypot channel.`, deleteMessageSeconds: 60 * 60 * 24 }); + await banLogChannel.send(`User <@${message.author.id}> has been banned for typing in <#${process.env.DONT_TYPE_HERE_CHANNEL}>.\nMessage: \`${message.content}\``); + console.log(`${chalk.red.bold('[WatchCat]')} User ${message.author.tag} (${message.author.id}) has been banned for typing in the honeypot channel`); }, }; diff --git a/src/watchcat.js b/src/watchcat.js index a240cfa..8b9a578 100644 --- a/src/watchcat.js +++ b/src/watchcat.js @@ -5,7 +5,7 @@ const { Client, GatewayIntentBits } = require('discord.js'); dotenv.config({ quiet: true }); -const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMembers] }); +const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMembers, GatewayIntentBits.MessageContent] }); client .login(process.env.DISCORD_TOKEN)