Integrate your Garry's Mod server with Discord
- Connect your Discord and game's chats
- Send console output to Discord and run console commands
- Server status and player info Web API
- Lua API - make your own Discord commands
- axios@0.27.2
- steamid@2.0.0
- discord.js@13.6.0
- express@4.17.3
- express-ws@5.0.2
- Clone this repository
- Install npm dependencies using
npm i
- Install modules from Dependencies to server's
garrysmod/lua/bin
- Drop
lrelaysockets
folder to your server'sgarrysmod/addons
folder - Configure your installation
- Done!
- Open
config.js
- Here you will need to set channel IDs, Discord token and an LRELAY key, which serves as a password, you can set it to anything!
- Open
addons/lrelaysockets/lua/autorun/server/sv_config.lua
- Change
socketPath
, which should look something likews://123.45.6.7:8556/relay
- Change
token
to your LRELAY key, which you set earlier atconfig.js
asauth
- Change
consoleAccess
to your Discord user ID, you can add additional user IDs - (optional) Change
statusName
to whatever name you want for server status API
- Discordia - Lua color convertation
- Lenofag-2000 (lenofag.ru?uwu=1#9927)
- Aksyned - inspired from his relay