We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 998cda0 commit 237102fCopy full SHA for 237102f
HackChat-BotLib.js
@@ -14,7 +14,7 @@ for (let module in modules) {
14
}
15
16
class Client {
17
- constructor(server_ip) {
+ constructor(server_ip="wss://hack.chat/chat-ws") {
18
this._ws = server_ip == "wss://hack.chat/chat-ws" ?
19
new WebSocket('wss://104.131.138.176/chat-ws', {
20
headers: {
test.js
@@ -1,5 +1,5 @@
1
let Client = require("./HackChat-BotLib.js");
2
-let client = new Client("wss://hack.chat/chat-ws"); //104.131.138.176
+let client = new Client(); //104.131.138.176
3
let join_channel = "lounge";
4
5
client.onjoin = () => {
0 commit comments