This commit is contained in:
BopItFreak 2020-02-09 18:05:30 -05:00 committed by GitHub
parent f6c71c94bd
commit a432d1942e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -27,11 +27,11 @@ async function messagehandle(data) {
let effect = data.effect || "";
let roomName = data.roomName;
let color = data.color;
let id = data.id;
let id = data.sID || data.socketID || data.id;
if (id == client.socket.id) return;
let c = dClient.channels.get("593943518351982603");
let msg;
(!name && (data.message.startsWith("[i]") || data.message.startsWith("[d]"))) ? msg = `*${escapeDiscordMentions(data.message)}*` : msg = `**${sanitizeName(name)}:** ${escapeDiscordMentions(data.message)}`;
(!name && (data.message.startsWith("[i]"))) ? msg = `*${escapeDiscordMentions(data.message.split("[i]")[1])}*` : msg = `**${sanitizeName(name)}:** ${escapeDiscordMentions(data.message)}`;
if (c) c.send(msg);
}
break;