A GitHub App built with Probot that can submit tips on behalf of a Substrate based network.
This bot relies on GitHub pull request that opt in via a body text comment to specify what Substrate network and address to send tips to.
{kusama|polkadot|localtest} address: <SS58 Address>Followed by a comment on said pull request
/tip {small | medium | large}To use this bot, you'll need to have an .env file. Most of the options will
automatically be generated by the GitHub application creation process, but you will also need to add
ACCOUNT_SEED and ALLOWED_USERS.
A reference env file is placed at .env.example to copy over
$ cp .env.example .envAfter registering and configuring the bot environment, we can run it. We use
Nodemon for hot-reloading, the probot package
automatically parses the relevant .env values.
$ yarn startTo run the bot via Docker, we need to build and then run it like so
$ docker build -t substrate-tip-bot .$ docker run \
-e APP_ID=<app-id> \
-e PRIVATE_KEY=<pem-value> \
substrate-tip-botIf you have suggestions for how substrate-tip-bot could be improved, or want to report a bug, open an issue! We'd love all and any contributions.
For more, check out the Contributing Guide.
MIT © 2021 Parity Technologies admin@parity.io