Skip to content

Commit

Permalink
irc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
soshimee committed Oct 11, 2024
1 parent 4acac2f commit a0b6887
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions features/irc/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ function reset() {
ws.connect();
}

function keepAlive() {
if (!enabled) return;
try {
ws?.send("/");
} catch (error) {}
Async.schedule(keepAlive, 10000);
}

function auth() {
ChatLib.chat("§8[§bIRC§8] §7Authenticating...");
const token = Client.getMinecraft().func_110432_I().func_148254_d();
Expand Down Expand Up @@ -82,6 +90,7 @@ export function enable() {
trigger.register();
unloadTrigger.register();
reset();
keepAlive();
ChatLib.chat("§8[§bIRC§8] §7Connecting...");
}

Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "soshimeeaddons",
"description": "F7 on top",
"creator": "soshimee",
"version": "2.8.0",
"version": "2.8.1",
"entry": "index.js",
"requires": ["PromiseV2", "BloomCore", "fparser", "requestV2", "Vigilance", "PogData", "RenderLib", "WebSocket", "Async"]
}

0 comments on commit a0b6887

Please sign in to comment.