AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY?]DSM - Discord Server Manager [2020/04/11] (https://forums.alliedmods.net/showthread.php?t=317478)

Nexd 07-15-2019 22:13

[ANY?]DSM - Discord Server Manager [2020/04/11]
 
Description
This is a discord version of the SWGM plugin, it was requested HERE by paulo_crash

Random previews
https://i.imgur.com/JIdChen.png https://i.imgur.com/QOm2PVL.png https://i.imgur.com/E7TaUrd.png

Features
  1. Players have to verify their account on discord
  2. Discord<->Server chat relay (With steam avatars+names)
  3. Webhooks:
    -Mapchange
    -Bans (sbpp_main)
    -Comms (sbpp_comms)
    -Reports (sbpp_reports)

Planned Features
I've seen a thread about executable commands through discord
Log relay to discord, also admin action logs
Manage user roles

Known bugs
None atm but didn't tested it that much

Dependencies
Discord-API - Its in the package
SMJansson - Required for Discord-API
SteamWorks - Required for Discord-API

Installation
  1. Upload the things to your server
  2. Look at the wiki how to set-up the things
  3. Edit the "cfg/sourcemod/discord_server_manager.cfg" with your details
  4. Add a new section to the databases.cfg called 'dsm'


If you have got any problem or error with the plugin feel free to reply to the thread

Download
Download
Github Repo
Releases

paulo_crash 07-16-2019 09:58

Re: [ANY?]DSM - Discord Server Manager
 
OMG, thank you very much!

I will be installing it and anything I contact, thank you very much.

paulo_crash 07-16-2019 10:21

Re: [ANY?]DSM - Discord Server Manager
 
Only one thing, could give example to put in these CVARs:
HTML Code:

dsm_token "" // Your discord bot token
dsm_channel_id "" // Channel ID in discord where the players can link their accounts

dsm_channel_id I put channel ID, so far and right.

Agra dsm_token was in doubt, in case I created a WebHook for it, or would it be the same server ID?

Nexd 07-16-2019 12:23

Re: [ANY?]DSM - Discord Server Manager
 
That should be the bot token(Not a webhook)
You can find a nice tutorial for it here:
https://github.com/Deathknife/source...-a-Bot-Account (Old theme but its the same)

For the channel id, just enable the developer mode in the appearance menu then rightclick on a channel and copy id

paulo_crash 07-16-2019 12:48

Re: [ANY?]DSM - Discord Server Manager
 
Quote:

Originally Posted by Nexd (Post 2659336)
That should be the bot token(Not a webhook)
You can find a nice tutorial for it here:
https://github.com/Deathknife/source...-a-Bot-Account (Old theme but its the same)

For the channel id, just enable the developer mode in the appearance menu then rightclick on a channel and copy id

Perfect, I did it.

I'll be testing now, return with the results, thank you.

Mitchell 07-16-2019 15:27

Re: [ANY?]DSM - Discord Server Manager
 
This seems like a lot of work for what a simple php page could do..
http://mtch.tech/dsc/
However it currently requires steam to already be linked under the user's discord account. Some more magic would go around this.
Also requires you to login to discord through the browser.

Once it redirects back to the page it will just store the steam 64 id with the discord unique id within a MySQL DB.

From a Server Operator all this requires is a mysql database and a Discord Bot App. (Similar to creating a bot except you don't need to have a standalone script running the bot)

The PHP script uses the Bot's redirect url in order to get the user's ID and steam account etc.

paulo_crash 07-16-2019 16:47

Re: [ANY?]DSM - Discord Server Manager
 
Doubt, how does the verification system work when the player enters the Discord Server?

Does the Player type the command in the discord and do the check in time?

If he leaves Discord, does he lose access to the correct commands? That is, it has to be on the Discord Server to continue with access.

Nexd 07-16-2019 17:00

Re: [ANY?]DSM - Discord Server Manager
 
He have to use the !link command ingame to get the assign id then he have to use it in the discord text channel
Example picture:
https://prnt.sc/ofz1i7

for me, the sm_link cvar was changed to !regisztracio

In general, the player only have to do this once
Take a look on the known bugs

paulo_crash 07-16-2019 17:13

Re: [ANY?]DSM - Discord Server Manager
 
Quote:

Originally Posted by Nexd (Post 2659379)
He have to use the !link command ingame to get the assign id then he have to use it in the discord text channel
Example picture:
https://prnt.sc/ofz1i7

for me, the sm_link cvar was changed to !regisztracio

In general, the player only have to do this once
Take a look on the known bugs

I understand, another thing, I did the whole procedure of the link that you mentioned here:
Quote:

Originally Posted by Nexd (Post 2659336)
That should be the bot token(Not a webhook)
You can find a nice tutorial for it here:
https://github.com/Deathknife/source...-a-Bot-Account (Old theme but its the same)

For the channel id, just enable the developer mode in the appearance menu then rightclick on a channel and copy id

I was able to connect the BOT and leave it online, but after a while the BOT goes offline again, does the BOT have to stay online always or would not this be a problem?

Nexd 07-16-2019 17:33

Re: [ANY?]DSM - Discord Server Manager
 
The bot could be offline, doesn’t matter


All times are GMT -4. The time now is 09:39.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.