Execute on message edit

master
Chloe Fontenot 🏳️‍⚧️ 2023-04-01 18:41:35 +07:00
parent 7613abd242
commit 999282bc9f
1 changed files with 9 additions and 2 deletions

@ -103,6 +103,14 @@ function replyMessage(message, correctedMessage, abbrsUsed) {
}
client.on('messageCreate', message => {
checkMessage(message);
});
client.on('messageEdit', message => {
checkMessage(message);
});
function checkMessage(message) {
console.log(`${message.author.tag} in #${message.channel.name} sent: ${message.content}`);
if (message.author.bot) {
//console.log(message.author);
@ -155,5 +163,4 @@ client.on('messageCreate', message => {
replyMessage(message, correctedMessage, abbrsUsed);
}
}
);
}