The Vencord Emergency Alert System of Düsseldorf
front | ||
.gitignore | ||
main.py | ||
README.md |
Vencord EAS
This is the repo for both the frontend and backend for the Vencord Emergency Alert System.
Installation
You run the server by:
- Installing the
websockets
andpython-dotenv
packages; - Making a
.env
file; - Adding a line with
TOKEN={token}
, with{token}
being any string that'll be used to broadcast messages; - Running
python main.py
.
Usage
You can send raw text to the WS server. This text is in form of commands:
GET
will reply with a message response;MSG {token} {message}
will set the message and broadcast it to all logged-in clients;CLEAR {token}
will clear the current message.
You may receive one of three responses while using the server:
MSG {message}
to indicate there's a new message. The client should react by showing an alert with the message. If no message is present, the packet will beMSG
only. In this case, the client shouldn't react.OK
indicates the action was successful. The client should react by showing an alert telling the user so.NULL
to indicate that no data is available. No client reaction is intended.
Frontend
The frontend is a static HTML page and can be hosted on anything.