This bot was written in a few hours. There are no tests and it has not been certified to work correctly. Do not use tokens of value with this bot. I take no responsiblity for any lost funds of any kind.
Also note this project is written in Javascript using npm packages which should be consider insecure.
There is a demo bot running at @slp_div_bot
- If no addresses match min/max reply to telegram user.
- Cleanup code (remove duplication and minified chunks)
- Tests
This bot will ask several questions and then build invoice(s) at bitcoin.com (using https://github.com/Bitcoin-com/Pay.bitcoin.com) to pay dividend or airdrop a SLP token to SLP token holders.
This bot only sends using the last confirmed block.
WARNING: https://github.com/simpleledger/slp-list is used to get list of token holders and amounts.
yarn install- Copy
config.json.disttoconfig.jsoncp config.json.dist config.json
- Adjust
config.jsonfor your needs
Send the following messages to @BotFather
/newbotand follow the prompts to create your bot.- Copy the
tokeninto yourconfig.jsonfor keytelegramToken
If you like this bot and want to support me, send me some tokens or crypto:
SLP:
simpleledger:qq0dg8mk42k2czhqv008tsaqj4tf24f3e52whts56e
BCH:
bitcoincash:qp8uwzjfw4nce7terjre80u38kfvcnxf5glm5rv676
BTC:
1Lv4Etacsjj1yi3AUGbzZZrcHHhbVbrNkY
ETH:
0xe5faC92651dD9Cf6ebab9C8B47d625502B334096