https://github.com/thevurv/glink
Communication between Discord and Garrysmod
https://github.com/thevurv/glink
chttp discord discord-bot garrysmod glua gmod lua reqwest websockets
Last synced: 6 months ago
JSON representation
Communication between Discord and Garrysmod
- Host: GitHub
- URL: https://github.com/thevurv/glink
- Owner: thevurv
- License: mit
- Created: 2022-01-30T02:54:01.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-02T04:36:46.000Z (almost 4 years ago)
- Last Synced: 2025-06-12T02:55:51.570Z (7 months ago)
- Topics: chttp, discord, discord-bot, garrysmod, glua, gmod, lua, reqwest, websockets
- Language: Lua
- Homepage:
- Size: 64.5 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ``glink``
Communication between Discord and Garrysmod
## Requires
* [gwsockets](https://github.com/FredyH/GWSockets)
* [gmsv_reqwest](https://github.com/WilliamVenner/gmsv_reqwest) or [gmod-chttp](https://github.com/timschumi/gmod-chttp)
## Usage
Set ``DISCORD_TOKEN``, ``DISCORD_BOT_ID``, ``DISCORD_LINK_CHANNEL_ID`` and ``DISCORD_WEBHOOK`` with the lua ``cookie`` library.
(Optionally ``DISCORD_AVATAR``)
E.g. run this in the server console:
```lua
cookie.Set("DISCORD_TOKEN", "blablablablabla")
```