placeholder files for message reaction handling

This commit is contained in:
2022-11-26 22:32:52 +01:00
parent 553fcd87cf
commit 5404f9b301
3 changed files with 10 additions and 3 deletions

View File

@ -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`' },

View File

@ -0,0 +1,4 @@
const HandleReaction = async (reaction, Database) => {
}
module.exports = {HandleReaction}

View File

@ -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)