aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/bot.js b/bot.js
index 2cdcce8..20da490 100644
--- a/bot.js
+++ b/bot.js
@@ -44,6 +44,7 @@ global.l = (en, fr, id, gid) => {
}
const commands = require('./modules/registers');
+const getHelp = require("./modules/help");
client.on('ready', async () => {
client.user.setActivity("/help", { type: "LISTENING" })
@@ -58,6 +59,12 @@ client.on('ready', async () => {
console.log("Successfully reloaded application (/) commands globally");
});
+client.on('message', message => {
+ if (message.content.trim() === "<@" + client.user.id + ">") {
+ message.reply(getHelp(message.guild, message.guild.id, message.author.id, true));
+ }
+})
+
client.on('interactionCreate', async interaction => {
if (!interaction) { return; }