From 5dd6d046e166a52e73b68b7e6015553231f333a3 Mon Sep 17 00:00:00 2001 From: Minteck Date: Thu, 10 Feb 2022 22:40:42 +0100 Subject: Feature: implements #1 --- bot.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bot.js') 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; } -- cgit