Skip to content

Commit a0b6887

Browse files
committed
irc changes
1 parent 4acac2f commit a0b6887

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

features/irc/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ function reset() {
5555
ws.connect();
5656
}
5757

58+
function keepAlive() {
59+
if (!enabled) return;
60+
try {
61+
ws?.send("/");
62+
} catch (error) {}
63+
Async.schedule(keepAlive, 10000);
64+
}
65+
5866
function auth() {
5967
ChatLib.chat("§8[§bIRC§8] §7Authenticating...");
6068
const token = Client.getMinecraft().func_110432_I().func_148254_d();
@@ -82,6 +90,7 @@ export function enable() {
8290
trigger.register();
8391
unloadTrigger.register();
8492
reset();
93+
keepAlive();
8594
ChatLib.chat("§8[§bIRC§8] §7Connecting...");
8695
}
8796

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "soshimeeaddons",
33
"description": "F7 on top",
44
"creator": "soshimee",
5-
"version": "2.8.0",
5+
"version": "2.8.1",
66
"entry": "index.js",
77
"requires": ["PromiseV2", "BloomCore", "fparser", "requestV2", "Vigilance", "PogData", "RenderLib", "WebSocket", "Async"]
88
}

0 commit comments

Comments
 (0)