View Single Post
Author Message
iGANGNAM
AlliedModders Donor
Join Date: Sep 2012
Location: Lithuania
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, 467 views)
File Type: inc accelerator.inc (631 Bytes, 352 views)
File Type: sp Get Plugin or Get Source (discord_accelerator.sp - 590 views - 3.8 KB)
File Type: smx discord_accelerator.smx (5.6 KB, 577 views)
__________________

Last edited by iGANGNAM; 05-20-2019 at 13:52.
iGANGNAM is offline