/discord-relay

A discord chat relay for Garry's Mod

Primary LanguageLuaMIT LicenseMIT

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