Core-Alerter keeps watch of delegate events like missed blocks, ranking changes, and forging status updates. Any changes to the list of watched delegates will automatically ping the user on Discord.
Installation is quick an easy, just follow these 2 simple steps:
solar plugin:install https://github.com/eugeneli/core-alerter.git- Copy the
Sample Configbelow into.config/solar-core/{mainnet/testnet}/app.jsonundercoreorrelaydepending on which you're using
Config Fields
name: The delegate's namediscordId: The ID of the Discord account to pingdropOutMargin: How close to dropping out beforedropOutWarningis triggeredmessageOn: Events for this delegate that should trigger a Discord messagepingOn: Events for this delegate that should trigger a message with a ping todiscordId. This should be a subset ofmessageOn.
Events
missedBlock: When the delegate misses a block in a roundrankChangedWhen the delegate's rank changes in a roundforgingChanged: When the delegate's forging status changes in a rounddropOutWarning: When the delegate's withindropOutMarginof dropping out of forging
Right click the user account you want to ping (it can even be your own) and click Copy ID
{
"package": "@eugeneli/core-alerter",
"options": {
"enabled": true,
"forgingThreshold": 53,
"delegates": [
{
"name": "delegate_name",
"discordId": "111222333444555667",
"dropOutMargin": 10000,
"messageOn": ["missedBlock", "rankChanged", "forgingChanged", "dropOutWarning"],
"pingOn": ["missedBlock", "dropOutWarning"]
}
],
"discord": {
"webhook": "https://discord.com/api/webhooks/..."
}
}
}


