add comment about this weird code

This commit is contained in:
Joonas 2023-01-31 20:42:16 +02:00
parent dea84ea449
commit 7e0d807d2f
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,8 @@ client.on("PRIVMSG", async (msg) => {
if (msg.senderUsername === process.env.TWITCH_USERNAME) return;
const splitted = msg.messageText.split(" ");
// chatterinos duplicate message bypass fix lol
if (splitted[1] === "") {
splitted.splice(1, 1);
}