Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1.36 KB

README.md

File metadata and controls

42 lines (34 loc) · 1.36 KB

discord-relay

A discord chat relay for Garry's Mod

image

image

Requirements

Getting Started

  • 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
WSS_SECRET A randomly generated secret used for authentication.
WSS_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