Skip to content

Telegram tipping bot for SLP tokens (bitcoin cash).

License

Notifications You must be signed in to change notification settings

thomasxnguy/slpbot

Repository files navigation

WalletSLPBot

Telegram tipping bot for SLP tokens.

Support any kind of tokens.

Requirements

  • node v10.x

Get started

  • Clone this repository and run npm install
  • Build with npm run build
  • Start with npm run start

Run in local environment

  • Setup database with cd docker; docker-compose up
  • Run migration with npm run db:migration -- migration:run
  • To create new migration, run npm run db:migration -- migration:generate -n {{name}}
  • Verify Database with pgadmin http://localhost:8080 or with clipsql -h localhost -p 5432 --username=admin -d slpbotdb

Usages

Command Availability Description Example
/help DM/Group Show bot commands /help
/balance DM/Group Look up your balance /balance
/tip DM/Group Send someone a tip /tip @someone 10 to send 10 TOKEN to @someone
/tokeninfo DM/Group Show basic information about the slp token /tokeninfo
/withdraw DM Withdraw your TOKEN balance to an external slp address /withdraw simpleledger:qzs4cgag90hvr89e9ws74pgx763j9u32pus3yf8n7w 100 to withdraw 100 TOKEN to simpleledger:qzs4cgag90hvr89e9ws74pgx763j9u32pus3yf8n7w
/withdrawhistory DM Show records of all withdrawal /withdrawhistory
/deposit DM Deposit tokens to account Usage: Send deposit to this address: @simpleledger:qrleuq2zgym4eaelzwthyvp4wvkss5s09ux0vt57fx

Licence

MIT

About

Telegram tipping bot for SLP tokens (bitcoin cash).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published