From af8ce619825a66fe9214ea41a78e082f12b9fcad Mon Sep 17 00:00:00 2001 From: Lamp Date: Fri, 25 Jan 2019 22:46:40 +0000 Subject: [PATCH] =?UTF-8?q?bodge=20room=20"=EC=8B=AC=EC=8B=AC"=20always=20?= =?UTF-8?q?visible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mppbridger/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mppbridger/index.js b/src/mppbridger/index.js index 9b171ce..43a1ebf 100755 --- a/src/mppbridger/index.js +++ b/src/mppbridger/index.js @@ -43,7 +43,7 @@ global.createMPPbridge = function createMPPbridge(room, DiscordChannelID, site = site == "CMPC" ? new Client("ws://charsy.meowbin.com:16562") : undefined; if (!gClient) return console.error(`Invalid site ${site}`); - gClient.setChannel(/*(site == "MPP" && room == "lobby") ? "lolwutsecretlobbybackdoor" : */room, {visible:false}); + gClient.setChannel(/*(site == "MPP" && room == "lobby") ? "lolwutsecretlobbybackdoor" : */room, {visible: room == "심심"}); gClient.start(); // maintain the client's presence in the channel @@ -51,7 +51,7 @@ global.createMPPbridge = function createMPPbridge(room, DiscordChannelID, site = // if client is connected and not in a channel (meaning setChannel failed due to ratelimit because another client joined a channel with the same user within the last second) OR client is in a channel but it is not the right channel… if ((gClient.isConnected() && !gClient.channel) || (gClient.channel && gClient.channel._id != room)) // …set the channel! - gClient.setChannel(room, {visible:false}); + gClient.setChannel(room, {visible: room == "심심"}); }, 1000); let lastError;