diff --git a/main.ts b/main.ts index c5d7d57..cf6fe5c 100644 --- a/main.ts +++ b/main.ts @@ -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); } -} -); +} \ No newline at end of file