1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-06 19:02:33 +01:00

Add erlpack warning (#587)

* Add warning if erlpack is missing

Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com>
This commit is contained in:
TheArcaneBrony 2022-01-13 20:02:09 +00:00 committed by GitHub
parent 41fca13db2
commit 4f6a1a8e12

View File

@ -1,7 +1,9 @@
var erlpack: any; var erlpack: any;
try { try {
erlpack = require("@yukikaze-bot/erlpack"); erlpack = require("@yukikaze-bot/erlpack");
} catch (error) {} } catch (error) {
console.log("Missing @yukikaze-bot/erlpack, electron-based desktop clients designed for discord.com will not be able to connect!");
}
import { Payload, WebSocket } from "@fosscord/gateway"; import { Payload, WebSocket } from "@fosscord/gateway";
export async function Send(socket: WebSocket, data: Payload) { export async function Send(socket: WebSocket, data: Payload) {