Skip to content

Commit 237102f

Browse files
author
cmd1152
committed
change world
1 parent 998cda0 commit 237102f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

HackChat-BotLib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ for (let module in modules) {
1414
}
1515

1616
class Client {
17-
constructor(server_ip) {
17+
constructor(server_ip="wss://hack.chat/chat-ws") {
1818
this._ws = server_ip == "wss://hack.chat/chat-ws" ?
1919
new WebSocket('wss://104.131.138.176/chat-ws', {
2020
headers: {

test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
let Client = require("./HackChat-BotLib.js");
2-
let client = new Client("wss://hack.chat/chat-ws"); //104.131.138.176
2+
let client = new Client(); //104.131.138.176
33
let join_channel = "lounge";
44

55
client.onjoin = () => {

0 commit comments

Comments
 (0)