Garry's Mod

Garry's Mod

47 ratings
Discord Server Manager [OUTDATED]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
1.554 KB
Apr 15, 2018 @ 11:42am
Jun 3, 2018 @ 1:50am
3 Change Notes ( view )

Subscribe to download
Discord Server Manager [OUTDATED]

Description
[discord.gg]

This version of addon is outdated, that means that you should avoid to use it.
You can find a stable version at the GitHub[github.com]!
I can't upload it to the workshop, because it contains a part that have to be run at the webserver.
It is simple tool to send messages from Gmod server chat to your discord server.
Be on the wave~

My GitHub[github.com]

### HOW TO SET UP DISCORD MANAGER ###
1. Upload the addon to your server.
2. Go to your discord server settings and create a webhook.
3. Copy webhook url and remove https:// from the link.
4. Go to your gmod server and type into console discord_set_ling your link without https://

5. Choose your server gamemode. You should use special console commands:
discord_gm_darkrp (it will send only OOC messages to your discord server)
discord_gm_sandbox (it will send all messages to your discord server)

6.Go to your discord settings and enable developer mode.


7.Go to your discord server and copy channel id of future discord manager channel.


8. Back to your gmod server and type into console discord_set_channel channelid
For example: discord_set_channel 000000000000000000

9. Go to https://discordapp.com/developers/applications/me and create a new application.
Give it a name like "OOC Chat" or something else. Create a bot user, and reveal its token.
Copy token.


10. Go back to your gmod server and type into console discord_set_token token
For example: discord_set_token SHSDHAJJH44.DKJhksdJHDGFlk4564fds5213.DFG

11. Now, last step. Go back to your application (https://discordapp.com/developers/applications/me) and generate OAuth2 URL. Open generated url in your web browser and invite your discord bot to your discord server. Your bot must have permissions to read and send messages at selected channel. Your discord bot will be offline. It will be working fine.


- Go to your gmod or discord server and check out the addon.
- Have Fun!

This addon is licensed under Apache License v2.0[www.apache.org]

[www.apache.org]
32 Comments
Dremker_Vờyҝ07 Sep 26, 2023 @ 2:54am 
Hi, I'm sorry. I wanted to use your code with GitHub and ran into an error, how do I solve it?

[gm-discord-master] addons/gm-discord-master/lua/autorun/server/discord.lua:72: attempt to get length of local 'content' (a nil value)
1. onsuccess - addons/gm-discord-master/lua/autorun/server/discord.lua:72
2. unknown - lua/includes/modules/http.
WarMechanic Jul 18, 2022 @ 3:37am 
I got the stable github version working so that errors no longer appeared, yet the bot won't send messages into the chat. Where should I look to check to see if it works?
Linear Jul 15, 2022 @ 1:17pm 
[gm-discord-master] addons/gm-discord-master/lua/autorun/server/discord.lua:72: attempt to get length of local 'content' (a nil value)
1. onsuccess - addons/gm-discord-master/lua/autorun/server/discord.lua:72
Linear Jul 15, 2022 @ 12:59pm 
stable verion ?
Mestima  [author] Jun 24, 2021 @ 2:20pm 
This addon is outdated. Use GITHUB [github.com] version!
>KB> >KEKSQUAD Dec 24, 2019 @ 5:42pm 
Hey, is this being supported? If so, can you make a thing for this that adds the option to block team chat? Thanks!
Mestima  [author] Nov 1, 2019 @ 3:49pm 
Check out my github. There is a stable version there.
WaviestBalloon Oct 18, 2019 @ 11:32am 
This would be a great addon, sadly it looks like it doesn't work.
Mestima  [author] Mar 24, 2019 @ 12:04pm 
Пока что не горю желанием пропускать через свой сервер такой трафик
razdolbai Mar 24, 2019 @ 10:32am 
Та все изи фиксится, нужно лишь сделать проксирующую пхпшку, которая будет делать curl запрос