Update message.js

This commit is contained in:
ItzEmerald authored and GitHub committed 2021-06-15 18:09:06 +01:00
1 parent 28a57ead9f
commit a405df66c9
1 file changed
+2
+2
View File
@@ -15,6 +15,8 @@ module.exports = async (bot, message) => {
let messageArray = message.content.split(" ");
const args = message.content.slice(supportbot.Prefix.length).trim().split(/ +/g);
const command = args.shift().toLowerCase();
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]`, `\u001b[36m`, `${message.author.tag}`, `\u001b[33m`, `has executed the command`, `\u001b[36m`,`${supportbot.Prefix}${command}`)
const cmd = bot.commands.get(command);
if(!cmd) return;