Checks every pool in the list at https://raw.githubusercontent.com/turtlecoin/turtlecoin-pools-json/master/turtlecoin-pools.json and tells operators who have claimed their pool if the pool falls behind 5 or more blocks from the median block height.
pip3 install discord.py
git clone https://github.com/fruktstav/turtlecoin-pool-discordbot.git
cd turtlecoin-pool-discordbot/src
Add the allowed channel by adding it's channel id to the "allowed_channel" variable in bot.py, also change the last line in bot.py and enter your bot token from discord developers, and finally the options for mailgun in mailer.py then:
python3 bot.py
!claim pool.url [email protected]
Write this in any channel that the bot is online in, or in a DM to the bot and it will alert you whenever the pool you claim is down/falling behind. The e-mail parameter is optional.
!unclaim pool.url
Remove yourself from pool.url.
!listclaims
Returns a list of all claimed pools and their operators
!heights
Lists all pools and their current blockheight
!help
Returns a list of available commands