Merge pull request #394 from ChrisChrome/erlpack-fix

This commit is contained in:
Flam3rboy authored and GitHub committed 2021-09-23 14:01:05 +02:00
commit 479625d7d8
5 files changed
+6 -3

No files matched your search

BIN
View File
Binary file not shown.
+3
View File
@@ -38,5 +38,8 @@
"typeorm": "^0.2.37",
"uuid": "^8.3.2",
"ws": "^7.4.2"
},
"optionalDependencies": {
"@yukikaze-bot/erlpack": "^1.0.1"
}
}
+1 -1
View File
@@ -11,7 +11,7 @@ import { URL } from "url";
import { Session } from "@fosscord/util";
var erlpack: any;
try {
erlpack = require("erlpack");
erlpack = require("@yukikaze-bot/erlpack");
} catch (error) {}
// TODO: check rate limit
+1 -1
View File
@@ -1,7 +1,7 @@
import WebSocket from "@fosscord/gateway/util/WebSocket";
var erlpack: any;
try {
erlpack = require("erlpack");
erlpack = require("@yukikaze-bot/erlpack");
} catch (error) {}
import OPCodeHandlers from "../opcodes";
import { Payload, CLOSECODES, OPCODES } from "@fosscord/gateway/util/Constants";
+1 -1
View File
@@ -1,6 +1,6 @@
var erlpack: any;
try {
erlpack = require("erlpack");
erlpack = require("@yukikaze-bot/erlpack");
} catch (error) {}
import { Payload } from "@fosscord/gateway/util/Constants";