Telegram tipping bot for SLP tokens.
Support any kind of tokens.
- node v10.x
- Clone this repository and run
npm install
- Build with
npm run build
- Start with
npm run start
- 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
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 |
MIT