Skip to content

suburbGira/discord-relay

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A discord chat relay for Garry's Mod

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 58.5%
  • TypeScript 41.5%