added /forceevaluate
This commit is contained in:
parent
6abe473a73
commit
535c8d0746
12
commands/forceEvaluate.cjs
Normal file
12
commands/forceEvaluate.cjs
Normal file
@ -0,0 +1,12 @@
|
||||
const { SlashCommandBuilder, Discord } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('forceevaluate')
|
||||
.setDescription('Makes the bot re-evaluate a message even if that person is exempt for a single message.'),
|
||||
async execute(interaction, client) {
|
||||
const messagefromId = await client.channels.cache.get(interaction.channel.id).messages.fetch(messageId);
|
||||
global.checkMessage(messagefromId);
|
||||
console.log("User " + interaction.user.tag + " ran /forceevaluate");
|
||||
},
|
||||
};
|
2
main.cjs
2
main.cjs
@ -128,7 +128,7 @@ client.on('messageUpdate', (undefined, newMessage) => {
|
||||
|
||||
});
|
||||
|
||||
function checkMessage(message) {
|
||||
global.checkMessage() = function checkMessage(message) {
|
||||
checkInsult(message);
|
||||
if (message.content == "<@1091120267851485215>, what are your pronouns?") {
|
||||
message.reply({ content: "My pronouns are she/her ☺️", allowedMentions: { repliedUser: false } })
|
||||
|
Loading…
Reference in New Issue
Block a user