Raised This Month: $62 Target: $400
 15% 

[Discord] Server crash (Accelerator)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
iGANGNAM
AlliedModders Donor
Join Date: Sep 2012
Location: Lithuania
Plugin ID:
6571
Plugin Version:
1.0.0
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Sends discord message when server crashed
    Old 05-18-2019 , 19:03   [Discord] Server crash (Accelerator)
    Reply With Quote #1

    By using custom build of Accelerator possible to have forward which allows to send Discord message about server crash.
    NOTE that this version/repo/branch of accelerator is unsupported and outdated.

    Currently only Linux build for Accelerator, you can compile one for Windows from Git https://github.com/GamersClub/accelerator/tree/api
    Also uses https://forums.alliedmods.net/showthread.php?t=292663 (You need to add entry to discord config file of that core plugin)
    ConVars
    Quote:
    // What nickname hook will have.
    // -
    // Default: "Captain Crash"
    discord_accelerator_hookname "Captain Crash"

    // Role ID ir User ID to mention.
    // You can get Role ID or User ID by making \@User or \@Group
    // If you want to mention group add & before ID
    // -
    // Default: ""
    discord_accelerator_mention ""

    // Short server name
    // -
    // Default: ""
    discord_accelerator_servername ""

    // Config key from configs/discord.cfg.
    // -
    // Default: "accelerator"
    discord_accelerator_webhook "accelerator"

    // Information text that server crashed in message.
    // -
    // Default: "Server crashed"
    discord_accelerator_message "Server crashed"
    Attached Files
    File Type: zip accelerator.ext.zip (162.8 KB, 18 views)
    File Type: inc accelerator.inc (631 Bytes, 24 views)
    File Type: sp Get Plugin or Get Source (discord_accelerator.sp - 38 views - 3.8 KB)
    File Type: smx discord_accelerator.smx (5.6 KB, 40 views)
    __________________

    Last edited by iGANGNAM; 05-20-2019 at 13:52.
    iGANGNAM is offline
    NanoC
    Senior Member
    Join Date: Jan 2016
    Location: Argentina
    Old 05-18-2019 , 19:47   Re: [Discord] Server crash (Accelerator)
    Reply With Quote #2

    Good work!
    __________________
    My plugins || Steam || Discord: nano#7638 || Donate via PayPal!
    Total donated: $139
    NanoC is offline
    Send a message via Skype™ to NanoC
    Bara
    AlliedModders Donor
    Join Date: Apr 2012
    Location: Germany
    Old 05-18-2019 , 19:55   Re: [Discord] Server crash (Accelerator)
    Reply With Quote #3

    You should add an note that this version/repo/branch of accelerator is unsupported and outdated.
    __________________
    Bara is offline
    CrazyHackGUT
    AlliedModders Donor
    Join Date: Feb 2016
    Location: Izhevsk, Russia
    Old 05-19-2019 , 03:28   Re: [Discord] Server crash (Accelerator)
    Reply With Quote #4

    In core.cfg we have ability change address to Accelerator web, where all crashes will be placed. For this, Accelerator uses config key MinidumpUrl.

    Code:
    /**
    * This file is used to set various options that are important to SourceMod's core.
    * If this file is missing or an option in this file is missing, then the default values will be used.
    */
    "Core"
    {
        "Logging"        "on"
        // ...
        "MinidumpAccount"                "7656xxxxxxxxxxxxx"
        "MinidumpUrl"                    "https://crash.limetech.org/submit"
    }
    I know two peoples, who self-hosts Accelerator web for own usage in server local subnet.
    But in this plugin, you hardcoded url for message in Discord - in Source Code. Maybe you should respect these users, who self-hosts Accelerator web, and get address dynamically from core.cfg?
    __________________
    My english is very bad. I am live in Russia. Learning english language - very hard task for me...
    CrazyHackGUT is offline
    Send a message via ICQ to CrazyHackGUT Send a message via Skype™ to CrazyHackGUT
    iGANGNAM
    AlliedModders Donor
    Join Date: Sep 2012
    Location: Lithuania
    Old 05-19-2019 , 04:17   Re: [Discord] Server crash (Accelerator)
    Reply With Quote #5

    Quote:
    Originally Posted by CrazyHackGUT View Post
    In core.cfg we have ability change address to Accelerator web, where all crashes will be placed. For this, Accelerator uses config key MinidumpUrl.

    Code:
    /**
    * This file is used to set various options that are important to SourceMod's core.
    * If this file is missing or an option in this file is missing, then the default values will be used.
    */
    "Core"
    {
        "Logging"        "on"
        // ...
        "MinidumpAccount"                "7656xxxxxxxxxxxxx"
        "MinidumpUrl"                    "https://crash.limetech.org/submit"
    }
    I know two peoples, who self-hosts Accelerator web for own usage in server local subnet.
    But in this plugin, you hardcoded url for message in Discord - in Source Code. Maybe you should respect these users, who self-hosts Accelerator web, and get address dynamically from core.cfg?
    Added. Also added text configuration for "Server crash" text, which means no hardcoded text in content anymore.
    __________________
    iGANGNAM is offline
    iGANGNAM
    AlliedModders Donor
    Join Date: Sep 2012
    Location: Lithuania
    Old 05-20-2019 , 13:53   Re: [Discord] Server crash (Accelerator)
    Reply With Quote #6

    Fixed mistakes I made in last version. Now it should display crash url properly.
    __________________
    iGANGNAM 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 07:32.


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