diff --git a/commands/forceEvaluate.cjs b/commands/forceEvaluate.cjs index 48aa6c7..126eb89 100644 --- a/commands/forceEvaluate.cjs +++ b/commands/forceEvaluate.cjs @@ -12,6 +12,7 @@ module.exports = { async execute(interaction, client) { var messageId = interaction.options.getString('messageid'); const messagefromId = await client.channels.cache.get(interaction.channel.id).messages.fetch(messageId); + global.h(messagefromId); global.checkMessage(messagefromId, true); interaction.reply({content: "Checking message..", ephemeral: true}); console.log("User " + interaction.user.tag + " ran /forceevaluate"); diff --git a/main.cjs b/main.cjs index f12439e..05e3c24 100644 --- a/main.cjs +++ b/main.cjs @@ -214,7 +214,7 @@ global.checkMessage = function checkMessage(message, runFromGlobal) { replyMessage(message, correctedMessage, abbrsUsed); } -function h(message) { +global.h = function h(message) { if (!message.author.bot && message.author.id == "205475706296205312" && message.content.toLowerCase().includes('idiot')) { message.react('<:amgery:1072270900675739758>'); message.reply("Caleb has specifcially asked you multiple times to stop calling yourself an idiot.");