- Build and run the Dockerfile in the root (Pass '-p 8080:8080' at runtime)
- Copy .example.env in /muter and rename it to .env
- Fill in the .env (details)
- Run 'npm i'
- Run 'npx ts-node main.ts'
- Access to localhost:8080 with a web browser
To make it available from outside local networks, a server is required.
Here's how to deploy with render.com. (free)
- Fork this repository
- Create an account on render.com
- Go to your dashboard
- Go to the page to create a new web service
If you cannot find the forked repository, configure your GitHub account.
- After confirming that runtime is docker, create
From here, please work on a computer that is actually running Discord Desktop.
- Copy .example.env in /muter and rename it to .env
- Fill in the .env (details)
- Run 'npm i'
- Run 'npx ts-node main.ts'
- Access to the deployed server with a web browser (e.g. xxx.onrender.com)
The environment variables DISCORD_CLIENT_ID, DISCORD_CLIENT_SECRET and DISCORD_REDIRECT_URI must be set to run muter.
These can be obtained via the Discord Developer Portal.
SERVER_HOST_PORT and WEBSOCKET_SCHEME need not be changed from .example.env if used in a local network.
If used from outside local networks, SERVER_HOST_PORT should be the hostname of the server you deployed to.
If you are deploying on render.com, change WEBSOCKET_SCHEME to wss.