|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|