Garry's Mod

Garry's Mod

47 avaliações
Discord Server Manager [OUTDATED]
   
Premiar
+ favoritos
Nos favoritos
- favoritos
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Roleplay
Tamanho
Publicado em
Atualizado em
1.554 KB
15/abr./2018 às 11:42
3/jun./2018 às 1:50
3 notas de atualização (ver)

Inscreva-se para baixar
Discord Server Manager [OUTDATED]

Descrição
[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 comentário(s)
Dremker_Vờyҝ07 26/set./2023 às 2:54 
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 18/jul./2022 às 3:37 
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?
Tonials 15/jul./2022 às 13:17 
[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
Tonials 15/jul./2022 às 12:59 
stable verion ?
Mestima  [autor(a)] 24/jun./2021 às 14:20 
This addon is outdated. Use GITHUB [github.com] version!
>KB> >KEKSQUAD 24/dez./2019 às 17:42 
Hey, is this being supported? If so, can you make a thing for this that adds the option to block team chat? Thanks!
Mestima  [autor(a)] 1/nov./2019 às 15:49 
Check out my github. There is a stable version there.
WaviestBalloon 18/out./2019 às 11:32 
This would be a great addon, sadly it looks like it doesn't work.
Mestima  [autor(a)] 24/mar./2019 às 12:04 
Пока что не горю желанием пропускать через свой сервер такой трафик
razdolbai 24/mar./2019 às 10:32 
Та все изи фиксится, нужно лишь сделать проксирующую пхпшку, которая будет делать curl запрос