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:
parent
41fca13db2
commit
4f6a1a8e12
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user