1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 20:52:42 +01:00

Merge pull request #394 from ChrisChrome/erlpack-fix

This commit is contained in:
Flam3rboy 2021-09-23 14:01:05 +02:00 committed by GitHub
commit bdd2ecaea8
5 changed files with 835 additions and 12 deletions

File diff suppressed because it is too large Load Diff

View File

@ -38,5 +38,8 @@
"typeorm": "^0.2.37", "typeorm": "^0.2.37",
"uuid": "^8.3.2", "uuid": "^8.3.2",
"ws": "^7.4.2" "ws": "^7.4.2"
},
"optionalDependencies": {
"@yukikaze-bot/erlpack": "^1.0.1"
} }
} }

View File

@ -11,7 +11,7 @@ import { URL } from "url";
import { Session } from "@fosscord/util"; import { Session } from "@fosscord/util";
var erlpack: any; var erlpack: any;
try { try {
erlpack = require("erlpack"); erlpack = require("@yukikaze-bot/erlpack");
} catch (error) {} } catch (error) {}
// TODO: check rate limit // TODO: check rate limit

View File

@ -1,7 +1,7 @@
import WebSocket from "@fosscord/gateway/util/WebSocket"; import WebSocket from "@fosscord/gateway/util/WebSocket";
var erlpack: any; var erlpack: any;
try { try {
erlpack = require("erlpack"); erlpack = require("@yukikaze-bot/erlpack");
} catch (error) {} } catch (error) {}
import OPCodeHandlers from "../opcodes"; import OPCodeHandlers from "../opcodes";
import { Payload, CLOSECODES, OPCODES } from "@fosscord/gateway/util/Constants"; import { Payload, CLOSECODES, OPCODES } from "@fosscord/gateway/util/Constants";

View File

@ -1,6 +1,6 @@
var erlpack: any; var erlpack: any;
try { try {
erlpack = require("erlpack"); erlpack = require("@yukikaze-bot/erlpack");
} catch (error) {} } catch (error) {}
import { Payload } from "@fosscord/gateway/util/Constants"; import { Payload } from "@fosscord/gateway/util/Constants";