aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-02-10 22:45:54 +0100
committerMinteck <contact@minteck.org>2022-02-10 22:45:54 +0100
commit33404fb707c2a88f505193a4c757e8b789dfa706 (patch)
treea1144fd4ef39d97d042c8a48741ce13b50661e10 /bot.js
parent5dd6d046e166a52e73b68b7e6015553231f333a3 (diff)
downloadponyfind-33404fb707c2a88f505193a4c757e8b789dfa706.tar.gz
ponyfind-33404fb707c2a88f505193a4c757e8b789dfa706.tar.bz2
ponyfind-33404fb707c2a88f505193a4c757e8b789dfa706.zip
Fix: message listener not working
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot.js b/bot.js
index 20da490..982208b 100644
--- a/bot.js
+++ b/bot.js
@@ -59,7 +59,7 @@ client.on('ready', async () => {
console.log("Successfully reloaded application (/) commands globally");
});
-client.on('message', message => {
+client.on('messageCreate', message => {
if (message.content.trim() === "<@" + client.user.id + ">") {
message.reply(getHelp(message.guild, message.guild.id, message.author.id, true));
}