All Projects → merc1er → bchtipbot

merc1er / bchtipbot

Licence: other
Telegram Bitcoin Cash Tipping Bot

Programming Languages

python
139335 projects - #7 most used programming language
Procfile
174 projects

Projects that are alternatives of or similar to bchtipbot

adequate crypto address
A Ruby Library for dealing with validation cryptocurrency addresses
Stars: ✭ 18 (-5.26%)
Mutual labels:  bitcoincash
datacash
The simplest way to write data to Bitcoin Cash blockchain
Stars: ✭ 60 (+215.79%)
Mutual labels:  bitcoincash
TipJarViewController
Easy, drop-in tip jar for iOS apps.
Stars: ✭ 79 (+315.79%)
Mutual labels:  tipping
bitcash
BitCash: Python 3 Bitcoin Cash Library (fork of ofek's Bit)
Stars: ✭ 79 (+315.79%)
Mutual labels:  bitcoincash
gdax bot
gdax_bot - Micro dollar cost averaging for crypto
Stars: ✭ 57 (+200%)
Mutual labels:  bitcoincash
SmartBCH-Token-List
Community maintained SmartBCH token registry used on https://MarketCap.Cash
Stars: ✭ 20 (+5.26%)
Mutual labels:  bitcoincash
cashuwallet
Cashu is a cryptocurrency wallet for smartphones. Be your own bank. Accept payments or spend crypto directly from your phone.
Stars: ✭ 35 (+84.21%)
Mutual labels:  bitcoincash
cashaddress
Python tool for convert bitcoin cash legacy addresses
Stars: ✭ 40 (+110.53%)
Mutual labels:  bitcoincash
bitcoincashj
A library for working with Bitcoin Cash
Stars: ✭ 38 (+100%)
Mutual labels:  bitcoincash
payserver
Blockchain micro-service which is working on zigzag.io. It served as unified API for other micro-services to receive and send cryptocurrency assets.
Stars: ✭ 24 (+26.32%)
Mutual labels:  bitcoincash

Bitcoin Cash Telegram tipping bot

tests CodeFactor

📱 Usage

Simply open https://t.me/BCHtipbot and talk to the bot.

List of commands

Tipping
/start - Starts the bot
/deposit - Displays your Bitcoin Cash address for top up
/balance - Shows your balance in Bitcoin Cash
/withdraw - Withdraw your funds. Usage: /withdraw amount|all address
/help - Lists all commands
/tip - Sends a tip. Usage: /tip amount [@username]

Note that you can also tip satoshis with, for example: /tip 2000 satoshi @merc1er.

Price
/price - Displays the current price of Bitcoin Cash. Usage: /price [currency_code]

For example: /price (defaults to USD), /price eur, price BTC and so on.

⚙️ Run development server

Run the following commands:

pip install -r requirements-dev.txt
python3 tipbot/app.py

Credentials and API keys are stored in environment variables (recommended) or in settings.py (not recommended for production).

Run tests

Simply do:

python run_tests.py

Or, if you want to check coverage, do:

pip install coverage  # if you don't have it already
coverage run -m unittest
coverage html

then open the htmlcov/index.html page in a browser.

Linting

This project uses black Python code formatter. Use the following command to format your code:

black .
Customize the bot

⚠️ Add the following environment variables:

FEE_ADDRESS  # the Bitcoin Cash address where you want to collect the fees
FEE_PERCENTAGE  # how much fee you want to charge per tip (over $1)
TOKEN  # is the Telegram API token for the development bot (not for prod)
ADMIN_LIST  # you may add your Telegram username to the list to use the admin commands

🚀 Deployment

Deployments are automatic on master if tests pass.

To deploy your own bot, add the environment variables found in the section above (⚠️) and read this page.


To do

  • Reply with stickers
  • Queues with Celery/rq
  • Implement more tests
  • Allow users without a username to use the bot
  • Sometimes the bot doesn't get triggered with the /tip command while not admin
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].