Skip to content

About

SLP Dividend calculator Telegram Bot

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

SLP Dividend Telegram Bot

WARNING:

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.

DEMO:

There is a demo bot running at @slp_div_bot

TODO:

  • If no addresses match min/max reply to telegram user.
  • Cleanup code (remove duplication and minified chunks)
  • Tests

General Information

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.

Setup

Install required packages

yarn install

config.json

  1. Copy config.json.dist to config.json
    cp config.json.dist config.json
  2. Adjust config.json for your needs

Create a bot on telegram via the BotFather

Send the following messages to @BotFather

  1. /newbot and follow the prompts to create your bot.
  2. Copy the token into your config.json for key telegramToken

Donate

If you like this bot and want to support me, send me some tokens or crypto:

SLP:

simpleledger:qq0dg8mk42k2czhqv008tsaqj4tf24f3e52whts56e

 simpleledger:qq0dg8mk42k2czhqv008tsaqj4tf24f3e52whts56e

BCH:

bitcoincash:qp8uwzjfw4nce7terjre80u38kfvcnxf5glm5rv676

 bitcoincash:qp8uwzjfw4nce7terjre80u38kfvcnxf5glm5rv676

BTC:

1Lv4Etacsjj1yi3AUGbzZZrcHHhbVbrNkY

 1Lv4Etacsjj1yi3AUGbzZZrcHHhbVbrNkY

ETH:

0xe5faC92651dD9Cf6ebab9C8B47d625502B334096

 0xe5faC92651dD9Cf6ebab9C8B47d625502B334096

About

SLP Dividend calculator Telegram Bot

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages