A Garry's Mod Discord relay that runs entirely on the server, no thirdparty or external shenanigans.
(Except for the required binaries because this game's networking is severely handicapped)
Warning
There's been a major overhaul of the relay's internals. You will almost definitely have to reconfigure and/or recode anything to do with it.
- Relays Discord messages to in-game (duh)
- Relays in-game messages to Discord (duh)
- Can read and write to multiple channels/guilds at once
- Simple configuration
- Runs entirely on the server, no external backends or processes
- A-OK caching to make it fast like a racecar
- Command system to interact with the server from Discord
- Hookable messages for developers to integrate into it
- Has some cool OOP style Discord API thingy majigs
-
Clone the repository to your addons folder
Help I'm retarded
cd garrysmod/addons git clone https://github.com/bjurd/gmod-discord-relay discordrelay -
Install GWSockets and CHTTP into your
garrysmod/lua/binfolder -
Configure
addons/discordrelay/data_static/relay/config.txt -
Horray!
If you have gm_shell installed, you can use the rupdate command in Discord to have the relay update itself.
-
cdto wherever you cloned the repo -
stash, pull, pop
Details
git stash push git pull git stash pop
Caution
If you don't stash before pulling, it's likely git will overwrite your config and other changes you've made with the default, blank config. Make sure to stash if you want to keep your changes and to pop the stash after pull completes.
Note
It's very likely a server restart will be needed after fetching updates, because the Discord library internals won't autorefresh.