mirror of
https://github.com/danbulant/Shasha
synced 2026-09-18 13:53:54 +00:00
u
This commit is contained in:
parent
a4d9d86dfe
commit
942832735a
1 changed files with 2 additions and 2 deletions
4
Main.js
4
Main.js
|
|
@ -59,9 +59,9 @@ client.on("message", async msg => {
|
|||
if (!msg.author.dbLoaded && !msg.author.bot) await msg.author.dbLoad();
|
||||
lgr.message.letsChat(msg);
|
||||
|
||||
if (msg.mentions.has(client.user) && !msg.isCommand && msg.cleanContent?.length > 0) {
|
||||
if (msg.mentions.has(client.user) && !msg.isCommand) {
|
||||
const u = msg.cleanContent.replace(new RegExp(" ?<@!?" + client.user.id + ">"), "").trim();
|
||||
trySend(client, msg, await chatAnswer(u));
|
||||
if (u.length > 0) trySend(client, msg, await chatAnswer(u));
|
||||
}
|
||||
|
||||
if (!msg.guild) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue