Raised This Month: $ Target: $400
 0% 

[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:
    52 
    Plugin Description:
    Sends discord message when server crashed
    Old 05-18-2019 , 20: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, 540 views)
    File Type: inc accelerator.inc (631 Bytes, 409 views)
    File Type: sp Get Plugin or Get Source (discord_accelerator.sp - 639 views - 3.8 KB)
    File Type: smx discord_accelerator.smx (5.6 KB, 655 views)
    __________________

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

    Good work!
    __________________
    NanoC is offline
    Send a message via Skype™ to NanoC
    Bara
    AlliedModders Donor
    Join Date: Apr 2012
    Location: Germany
    Old 05-18-2019 , 20: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.
    __________________
    Discord (Bara#5006) | My Plugins (GitHub)
    You like my work? Support is not a crime.
    Bara is offline
    CrazyHackGUT
    AlliedModders Donor
    Join Date: Feb 2016
    Location: Izhevsk, Russia
    Old 05-19-2019 , 04: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 , 05: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 , 14: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
    Johnoclock
    Member
    Join Date: Oct 2014
    Location: denmark
    Old 12-06-2022 , 03:39   Re: [Discord] Server crash (Accelerator)
    Reply With Quote #7

    I post a version that works with last version of Accelerator [Any] New Discord Accelerator (1.0, 2022-06-12)

    Last edited by Johnoclock; 12-06-2022 at 03:39.
    Johnoclock 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 13:58.


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