placeholder files for message reaction handling
This commit is contained in:
@ -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`' },
|
||||
|
4
Commons/Services/Reaction.js
Normal file
4
Commons/Services/Reaction.js
Normal file
@ -0,0 +1,4 @@
|
||||
const HandleReaction = async (reaction, Database) => {
|
||||
}
|
||||
|
||||
module.exports = {HandleReaction}
|
8
index.js
8
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)
|
Reference in New Issue
Block a user