A discord chat relay for Garry's Mod
- Garry's Mod
- Node.js
- GWSockets
- Discord bot
- Clone the repository
git clone https://github.com/wildflowericecoffee/discord-relay.git
- Move addon folder
Move the addons
folder to your Garry's Mod addons folder.
- Install dependencies
cd web
yarn
- Configuration
Rename the .json.example
files to .json
and fill out the config variables
Config Variable | Description |
---|---|
WS_HOST | IP of websocket server, localhost if running locally |
WS_SECRET | A randomly generated secret used for authentication. |
WS_PORT | The port to run the websocket server on. |
BOT_TOKEN | A Discord bot token. |
CHANNEL_ID | The channel ID of where the messages will be relayed. |
WEBHOOK | A Discord webhook to post messages. |
- Start the websocket server
yarn build && yarn start