1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-06-15 17:45:59 +00:00

Update message.js

This commit is contained in:
Christer Warén
2019-10-31 20:49:23 +02:00
committed by GitHub
parent 3c3df91675
commit 9b98935e9d

View File

@ -30,7 +30,7 @@ module.exports = {
const args = message.content.slice(prefix.length).split(' ');
let commandName;
if (message.mentions.users.first()) {
if (message.mentions.users.first().id === client.config.botId) {
if (message.mentions.users.first().id === client.user.id) {
if (!args[1]) return;
if (args[1] === 'prefix') return message.channel.send(`My prefix here is: \`${prefix}\`.`);
commandName = args[1].toLowerCase();