|
@@ -73,7 +73,7 @@ client.on("message", async m => {
|
|
|
|
|
|
if (m.mentions.users.size > 0 && m.mentions.users.has(client.user.id)) {
|
|
|
|
|
|
- if (m.content.trim().startsWith(client.user.toString())) {
|
|
|
+ if (m.content.trim().startsWith(`<@${client.user.id}>`) || m.content.trim().startsWith(`<@!${client.user.id}>`)) {
|
|
|
content = content.substring(`@${client.user.username}`.length).trim();
|
|
|
|
|
|
let lowerCaseContent = content.toLowerCase();
|