Skip to content

Commit

Permalink
Add emoji reaction when seed is mentioned
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhsm committed Sep 24, 2022
1 parent f47759d commit 694c000
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions events/message.js
Original file line number Diff line number Diff line change
@@ -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)
}
}
},
};
2 changes: 1 addition & 1 deletion junior.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 694c000

Please sign in to comment.