mirror of
https://github.com/danbulant/Shasha
synced 2026-06-18 22:01:17 +00:00
sfggggg
This commit is contained in:
parent
6df40cfccd
commit
b40b2857d2
1 changed files with 1 additions and 1 deletions
2
Main.js
2
Main.js
|
|
@ -59,7 +59,7 @@ 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) {
|
||||
if (msg.mentions.has(client.user) && !msg.isCommand && msg.channel.id != configFile.chatChannel) {
|
||||
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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue