mirror of
https://github.com/danbulant/Shasha
synced 2026-05-19 03:58:38 +00:00
typin
This commit is contained in:
parent
517799213c
commit
6df40cfccd
1 changed files with 4 additions and 1 deletions
5
Main.js
5
Main.js
|
|
@ -63,7 +63,10 @@ client.on("message", async msg => {
|
|||
const re = new RegExp("@" + (msg.guild ? msg.guild.member(client.user).displayName : msg.author.username));
|
||||
const u = msg.cleanContent.replace(re, "").trim();
|
||||
console.log(u, re);
|
||||
if (u.length > 0) await trySend(client, msg, await chatAnswer(u));
|
||||
if (u.length > 0) {
|
||||
msg.channel.startTyping();
|
||||
await trySend(client, msg, await chatAnswer(u));
|
||||
};
|
||||
}
|
||||
|
||||
if (!msg.guild) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue