diff --git a/events/msg.js b/events/msg.js index 5aa24af..e0a8a5d 100644 --- a/events/msg.js +++ b/events/msg.js @@ -3,6 +3,7 @@ module.exports = { async execute(client, msg, Discord) { if (msg.author.bot || !msg.guild) return; let prefix = client.config.prefix; + if(msg.mentions.members.first().user.id === client.user.id){ prefix = "<@!" + client.user.id + "> "; } const args = msg.content.slice(prefix.length).split(' '); if (!msg.content.startsWith(prefix)) return; if (!args[0]) return;