Git Product home page Git Product logo

turtlecoin-pool-discordbot's Introduction

turtlecoin-pool-discordbot

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.

Usage:

Running the bot:

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

Interacting with the bot:

!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

turtlecoin-pool-discordbot's People

Contributors

f-r00t avatar

Watchers

 avatar

Forkers

ooosbkf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.