Simple Python FastAPI web UI to browse guilds/channels and send messages using a Discord token placed in config.json.
Setup
- Create a virtual environment and install requirements:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt- Copy
config.json.exampletoconfig.jsonand add your Discord token:
{
"token": "YOUR_DISCORD_TOKEN"
}- Run the app:
uvicorn main:app --reload --host 0.0.0.0 --port 8000- Open http://localhost:8000 on your ps4. (change localhost to your local ip.)
Notes
- This proxies Discord REST API requests from the server using the token in
config.json. - Using user tokens may violate Discord's Terms of Service. Prefer bot tokens and invite the bot to guilds if possible.