All Projects → DarrenWestwood → greed

DarrenWestwood / greed

Licence: AGPL-3.0 License
A customizable Telegram shop bot that accepts bitcoin payments

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to greed

TradingTool-Wiki
Wiki for all TradingToolCrypto Products. MetaTrader 5 trading tools: Indicators, robots, risk management, signals, custom coding, CrptoBridgePro , and more
Stars: ✭ 26 (-16.13%)
Mutual labels:  telegram
Komi-San
Telegram Group Management Bot based on Pyrogram
Stars: ✭ 27 (-12.9%)
Mutual labels:  telegram
MIRROR-HUNTER
Who are we? We are the Hunters of all Torrent in this world.🗡️.Fork from SlamDevs
Stars: ✭ 86 (+177.42%)
Mutual labels:  telegram
munich-scripts
Some useful scripts simplifying bureaucracy
Stars: ✭ 105 (+238.71%)
Mutual labels:  telegram
Python-BlackJackBot
A Telegram bot written in Python to play the game BlackJack alone or with your friends
Stars: ✭ 48 (+54.84%)
Mutual labels:  telegram
QlikBotNet
Qlik Bot Net is an example chat bot which enables access to Qlik content via conversational analytics. It's built in .NET/C# and can be used with the Telegram messaging platform.
Stars: ✭ 20 (-35.48%)
Mutual labels:  telegram
keyboa
Keyboa is a project designed to simplify Telegram keyboards creation.
Stars: ✭ 24 (-22.58%)
Mutual labels:  telegram
Harmonbot
Multi-Platform Factotum Bot
Stars: ✭ 30 (-3.23%)
Mutual labels:  telegram
AmimeWatch
Telegram bot made in Python 3 using the @pyrogram framework.
Stars: ✭ 19 (-38.71%)
Mutual labels:  telegram
tg
`telegram-cli` for Telegram IM
Stars: ✭ 306 (+887.1%)
Mutual labels:  telegram
dark
🌛 Dark themes / mode for Rambox, Franz or Ferdi messaging services
Stars: ✭ 93 (+200%)
Mutual labels:  telegram
WilliamButcherBot
Telegram Group Manager Bot Written In Python Using Pyrogram.
Stars: ✭ 187 (+503.23%)
Mutual labels:  telegram
YouTubeFeeds
Get new youtube video notifs, on telegram!
Stars: ✭ 29 (-6.45%)
Mutual labels:  telegram
telegram-json-to-vcf
Convert Telegram Contacts JSON File to VCF File
Stars: ✭ 34 (+9.68%)
Mutual labels:  telegram
search photo-telegram-bot-heroku
一个可以部署在heroku上的搜图机器人
Stars: ✭ 137 (+341.94%)
Mutual labels:  telegram
technopsyna
телеграм бот для техноконфы
Stars: ✭ 16 (-48.39%)
Mutual labels:  telegram
electronim
Electron based multi IM (Instant Messaging) client
Stars: ✭ 50 (+61.29%)
Mutual labels:  telegram
mutegram
Disable Telegram Desktop Taskbar Flashing
Stars: ✭ 26 (-16.13%)
Mutual labels:  telegram
pykeyboard
Best Keyboard and Pagination for the Pyrogram Library.
Stars: ✭ 42 (+35.48%)
Mutual labels:  telegram
ESPecial
ESP32 automation with web interface and telegram bot
Stars: ✭ 77 (+148.39%)
Mutual labels:  telegram

greed

A customizable Telegram shop bot that accepts bitcoin payments. Demo at https://t.me/TgShopDemoBot

Requirements

Installation

  1. Download the project files through git clone https://github.com/DarrenWestwood/greed.git or this link.
  2. Install the project requirements with pip3 install -r requirements.txt
  3. Optional: run pip3 install coloredlogs to have colored logging output.
  4. Run python3 -OO core.py to generate the configuration file.
  5. Open the config folder and edit the config.ini file following the contained instructions.
    • Ensure the is_template field is set to no.
    • Select your preferred language, example language = en_US.
    • Set your Telegram bot token obtained from the Telegram Botfather.
  6. Run python3 -OO database.py to generate the database tables.
  7. Optional: customize the strings.py file
  8. Run python3 -OO core.py again to run the bot.
  9. Open Telegram, and send a /start command to your bot to be promoted to administrator.

Usage

All the bot features are available through Telegram. As the administrator, you can add new products, check the placed orders, create new transactions and generate .csv log files.
Users will be able to add credit to their wallet, place orders and contact you in case they require assistance.

Updating

Through git

If you downloaded greed through git, you can update it by running:

git stash
git pull
git stash pop

By redownloading the zip file

If you downloaded greed through the zip archive, you can update it by redownloading the latest version and by moving your config.ini and database.sqlite (if applicable) files to the new folder.

Integrating Bitcoin

  1. You will require a Blockonomics API Key - Complete merchant setup wizard by clicking on Get Started for Free on Blockonomics Merchants Page.

  2. Edit the config.ini file to set your Blockonomics api_key

  3. Set the HTTP Callback URL on the Blockonomics Merchants Page

    Below are instructions on how to deploy your bot to obtain a Callback URL for your bot using ngrok or Heroku.

    Deploy using ngrok

    • In a new terminal/cmd prompt run python3 -OO callback.py to run the bitcoin callback listener.
    • Download ngrok and follow the setup instructions: https://ngrok.com/download
    • In a separate terminal/cmd prompt run ngrok on the same port as the callback ./ngrok http 5000 or ~/ngrok http 5000
    • Copy the Forwarding URL from ngrok.
    • To set the HTTP Callback URL on the Blockonomics Merchants Page, combine the Forwarding URL with /callback?secret=YOUR_SECRET eg. http://c7f7ecb92ht5.ngrok.io/callback?secret=YOUR_SECRET
    • Run python3 -OO core.py again to relaunch the bot.

    Deploy using Heroku

    • Test using heroku cli command: heroku local
    • You will also be able to login to heroku and push your bot to heroku master to launch it into production using the following commands:
    git init .
    git add .
    git commit -m "Deploy to Heroku"
    heroku login -i
    heroku git:remote -a {your-heroku-project-name}
    git push heroku master
    
    • You can now start the greed bot and blockonomics callback from the Heroku Dashboard > Resources.
    • To set the HTTP Callback URL on the Blockonomics Merchants Page, combine the Heroku App URL with /callback?secret=YOUR_SECRET eg. https://greed.herokuapp.com/callback?secret=YOUR_SECRET

Credits

This project is a fork of greed project by @Steffo99. We would like to thank @Steffo99 for putting this in public domain.

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].