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

Use @yukikaze-bot/erlpack

discord/erlpack doesnt seem to like installing under linux, this one however, doesnt even need to build :)
This commit is contained in:
Chris Chrome 2021-09-23 05:16:15 -04:00
parent 57c4047fd5
commit 864f0b5c43
No known key found for this signature in database
GPG Key ID: A023A26E42C33A42
5 changed files with 832 additions and 11 deletions

File diff suppressed because it is too large Load Diff

View File

@ -27,6 +27,7 @@
},
"dependencies": {
"@fosscord/util": "file:../util",
"@yukikaze-bot/erlpack": "^1.0.1",
"ajv": "^8.5.0",
"amqplib": "^0.8.0",
"dotenv": "^8.2.0",

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

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";

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";