summary refs log tree commit diff
path: root/client.js
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-07 04:01:33 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-07 04:01:33 +0200
commit61d85d04ae675f7c284b59c793f56e3762efdc26 (patch)
treeba03297980f80187eedc5b0f579501a65cf2fe1d /client.js
parentMerge pull request #58 from notsapinho/patch-1 (diff)
downloadserver-61d85d04ae675f7c284b59c793f56e3762efdc26.tar.xz
:bug: fix identify default intent
Diffstat (limited to 'client.js')
-rw-r--r--client.js21
1 files changed, 13 insertions, 8 deletions
diff --git a/client.js b/client.js

index 57b747a6..34a59458 100644 --- a/client.js +++ b/client.js
@@ -2,7 +2,8 @@ require("missing-native-js-functions"); const WebSocket = require("ws"); const Constants = require("./dist/util/Constants"); -const ws = new WebSocket("ws://127.0.0.1:8080"); +// const ws = new WebSocket("ws://127.0.0.1:8080"); +const ws = new WebSocket("wss://gateway.discord.gg"); ws.on("open", () => { // ws.send(JSON.stringify({ req_type: "new_auth" })); @@ -27,14 +28,18 @@ ws.on("message", (buffer) => { send({ op: 1 }); }, data.d.heartbeat_interval); + // send({ + // op: 2, + // d: { + // token: + // "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjgxMTY0MjkxNzQzMjA2NjA0OCIsImlhdCI6MTYxMzU4MTE1MX0.7Qj_z2lYIgJ0rc7NfGtpW5DKGqecQfv1mLpoBUQHKDc", + // intents: 0n, + // properties: {}, + // }, + // }); + send({ - op: 2, - d: { - token: - "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjgxMTY0MjkxNzQzMjA2NjA0OCIsImlhdCI6MTYxMzU4MTE1MX0.7Qj_z2lYIgJ0rc7NfGtpW5DKGqecQfv1mLpoBUQHKDc", - intents: 0n, - properties: {}, - }, + op: 6, }); break;