diff options
Diffstat (limited to 'bot.js')
-rw-r--r-- | bot.js | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; } |