mirror of
https://github.com/danbulant/Shasha
synced 2026-06-19 22:31:31 +00:00
epic3
This commit is contained in:
parent
942832735a
commit
11332eadc6
1 changed files with 1 additions and 1 deletions
2
Main.js
2
Main.js
|
|
@ -60,7 +60,7 @@ client.on("message", async msg => {
|
|||
lgr.message.letsChat(msg);
|
||||
|
||||
if (msg.mentions.has(client.user) && !msg.isCommand) {
|
||||
const u = msg.cleanContent.replace(new RegExp(" ?<@!?" + client.user.id + ">"), "").trim();
|
||||
const u = msg.cleanContent.replace(new RegExp("@" + (msg.guild ? msg.guild.member(client.user).displayName : msg.author.username)), "").trim();
|
||||
if (u.length > 0) trySend(client, msg, await chatAnswer(u));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue