diff --git a/events/message.js b/events/message.js new file mode 100644 index 0000000..e97f869 --- /dev/null +++ b/events/message.js @@ -0,0 +1,13 @@ +module.exports = { + name: 'messageCreate', + once: false, + execute(message) { + if (message.content.includes("seed")) { + try { + message.react('<:itIsSpawnCode:996076074804973660>'); + } catch (error) { + console.error(error) + } + } + }, +}; \ No newline at end of file diff --git a/junior.js b/junior.js index 118a5bc..7c31a1d 100644 --- a/junior.js +++ b/junior.js @@ -3,7 +3,7 @@ const fs = require('fs'); const { Client, Collection, GatewayIntentBits } = require('discord.js'); -const client = new Client({ intents: [GatewayIntentBits.Guilds] }); +const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent] }); client.commands = new Collection(); const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));