From 5404f9b301ada6d265e35dce4051b082bb6b7930 Mon Sep 17 00:00:00 2001 From: steev Date: Sat, 26 Nov 2022 22:32:52 +0100 Subject: [PATCH] placeholder files for message reaction handling --- Commands/help.js | 1 - Commons/Services/Reaction.js | 4 ++++ index.js | 8 ++++++-- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 Commons/Services/Reaction.js diff --git a/Commands/help.js b/Commands/help.js index 121fa52..1f2e711 100644 --- a/Commands/help.js +++ b/Commands/help.js @@ -17,7 +17,6 @@ module.exports = { const userEmbed = new EmbedBuilder() .setColor('#0099ff') .setTitle('Dev Pengu Help') - .setURL('https://frankenbot.io/help') .setDescription('A List of Commands for Dev Pengu') .addFields( { name: '**Help**', value: '`/help`' }, diff --git a/Commons/Services/Reaction.js b/Commons/Services/Reaction.js new file mode 100644 index 0000000..26c3406 --- /dev/null +++ b/Commons/Services/Reaction.js @@ -0,0 +1,4 @@ +const HandleReaction = async (reaction, Database) => { +} + +module.exports = {HandleReaction} \ No newline at end of file diff --git a/index.js b/index.js index 3055f60..905c9e6 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ require("dotenv").config(); -const { Client, GatewayIntentBits, Collection, REST, Routes } = require('discord.js'); +const { Client, GatewayIntentBits, Collection, REST, Routes, Events } = require('discord.js'); const fs = require('fs'); const sql = require('mysql'); @@ -44,10 +44,14 @@ const rest = new REST({ version: '10' }).setToken(process.env.TOKEN); } })(); -bot.on("interactionCreate", async interaction => { +bot.on(Events.InteractionCreate, async interaction => { if (!interaction.isChatInputCommand()) return; let commandfile = bot.commands.get(interaction.commandName); if (commandfile) commandfile.run(bot, interaction); }) +// Handles Reactions +bot.on(Events.MessageReactionAdd, async reaction => { +}) + bot.login(process.env.TOKEN) \ No newline at end of file