Garry's Mod
47 人が評価
Discord Server Manager [OUTDATED]
   
アワード
お気に入り
お気に入り
お気に入りから削除
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Roleplay
ファイルサイズ
投稿日
更新日
1.554 KB
2018年4月15日 11時42分
2018年6月3日 1時50分
3 項目の変更履歴 ( 表示 )

サブスクライブしてダウンロード
Discord Server Manager [OUTDATED]

解説
[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 件のコメント
Dremker_Vờyҝ07 2023年9月26日 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 2022年7月18日 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?
Daniel The Brother In Law 2022年7月15日 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
Daniel The Brother In Law 2022年7月15日 12時59分 
stable verion ?
Mestima  [作成者] 2021年6月24日 14時20分 
This addon is outdated. Use GITHUB [github.com] version!
>KB> >KEKSQUAD 2019年12月24日 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  [作成者] 2019年11月1日 15時49分 
Check out my github. There is a stable version there.
WaviestBalloon 2019年10月18日 11時32分 
This would be a great addon, sadly it looks like it doesn't work.
Mestima  [作成者] 2019年3月24日 12時04分 
Пока что не горю желанием пропускать через свой сервер такой трафик
razdolbai 2019年3月24日 10時32分 
Та все изи фиксится, нужно лишь сделать проксирующую пхпшку, которая будет делать curl запрос