Raised This Month: $235 Target: $400
 58% 

[ANY?]DSM - Discord Server Manager [2020/04/11]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Nexd
BANNED
Join Date: Dec 2013
Location: Hungary
Plugin ID:
6647
Plugin Version:
1.0
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Players have to link their discord account before they could use the restricted commands
    Old 07-15-2019 , 22:13   [ANY?]DSM - Discord Server Manager [2020/04/11]
    Reply With Quote #1

    Description
    This is a discord version of the SWGM plugin, it was requested HERE by paulo_crash

    Random previews


    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

    Last edited by Nexd; 04-12-2020 at 08:12.
    Nexd is offline
    paulo_crash
    AlliedModders Donor
    Join Date: May 2016
    Location: Brazil
    Old 07-16-2019 , 09:58   Re: [ANY?]DSM - Discord Server Manager
    Reply With Quote #2

    OMG, thank you very much!

    I will be installing it and anything I contact, thank you very much.
    __________________
    paulo_crash is offline
    paulo_crash
    AlliedModders Donor
    Join Date: May 2016
    Location: Brazil
    Old 07-16-2019 , 10:21   Re: [ANY?]DSM - Discord Server Manager
    Reply With Quote #3

    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?
    __________________
    paulo_crash is offline
    Nexd
    BANNED
    Join Date: Dec 2013
    Location: Hungary
    Old 07-16-2019 , 12:23   Re: [ANY?]DSM - Discord Server Manager
    Reply With Quote #4

    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
    Nexd is offline
    paulo_crash
    AlliedModders Donor
    Join Date: May 2016
    Location: Brazil
    Old 07-16-2019 , 12:48   Re: [ANY?]DSM - Discord Server Manager
    Reply With Quote #5

    Quote:
    Originally Posted by Nexd View Post
    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.
    __________________
    paulo_crash is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 07-16-2019 , 15:27   Re: [ANY?]DSM - Discord Server Manager
    Reply With Quote #6

    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.

    Last edited by Mitchell; 07-16-2019 at 15:31.
    Mitchell is offline
    paulo_crash
    AlliedModders Donor
    Join Date: May 2016
    Location: Brazil
    Old 07-16-2019 , 16:47   Re: [ANY?]DSM - Discord Server Manager
    Reply With Quote #7

    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.
    __________________
    paulo_crash is offline
    Nexd
    BANNED
    Join Date: Dec 2013
    Location: Hungary
    Old 07-16-2019 , 17:00   Re: [ANY?]DSM - Discord Server Manager
    Reply With Quote #8

    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
    Nexd is offline
    paulo_crash
    AlliedModders Donor
    Join Date: May 2016
    Location: Brazil
    Old 07-16-2019 , 17:13   Re: [ANY?]DSM - Discord Server Manager
    Reply With Quote #9

    Quote:
    Originally Posted by Nexd View Post
    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 View Post
    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?
    __________________
    paulo_crash is offline
    Nexd
    BANNED
    Join Date: Dec 2013
    Location: Hungary
    Old 07-16-2019 , 17:33   Re: [ANY?]DSM - Discord Server Manager
    Reply With Quote #10

    The bot could be offline, doesn’t matter
    Nexd is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 00:32.


    Powered by vBulletin®
    Copyright ©2000 - 2021, vBulletin Solutions, Inc.
    Theme made by Freecode