Giter Site home page Giter Site logo

lomaka1313 / greed Goto Github PK

View Code? Open in Web Editor NEW

This project forked from darrenwestwood/greed

0.0 1.0 0.0 675 KB

A customizable Telegram shop bot that accepts bitcoin payments

License: GNU Affero General Public License v3.0

Python 99.98% Procfile 0.02%

greed's Introduction

greed

A customizable Telegram shop bot that accepts bitcoin payments.

Requirements, Installation & Usage

Please refer to the main greed project fork for requirements, installation guide, and usage instructions before proceeding with the bitcoin setup below

Integrating Bitcoin

  1. Edit the config/config.toml file to set your Blockonomics api_key from Blockonomics Merchants > Stores, and a secret of your choosing, you'll use this secret while setting up the Callback URL below.

  2. Add a new store and set the HTTP Callback URL

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

    Deploy using Ngrok

    • In a new terminal/cmd prompt, start the bitcoin callback listener on port 5000 python3 -OO callback.py
    • In another terminal/cmd prompt, start ngrok on port 5000 ./ngrok http 5000 or ~/ngrok http 5000
    • Copy the Forwarding URL from ngrok.
    • Set the HTTP Callback URL for your store. Combine the Forwarding URL with /callback?secret=YOUR_SECRET, substituting in your chosen secret from step 2 in place of YOUR_SECRET eg. http://c7f7ecb92ht5.ngrok.io/callback?secret=aN32nFjf4

    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.
    • Set the HTTP Callback URL for your store , combine the Heroku App URL with /callback?secret=YOUR_SECRET, substituting in your chosen secret from step 2 in place of YOUR_SECRET eg. https://greed.herokuapp.com/callback?secret=aN32nFjf4

That's it! Restart your bot and start accepting bitcoing payments with your bot!

Credits

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

greed's People

Contributors

steffo99 avatar darrenwestwood avatar thisisayush avatar zhihuiyuze avatar valentino-sm avatar shivaenigma avatar bakx13 avatar eufelipemateus avatar pzhuk avatar rashidkalwar avatar mastersuv avatar dependabot[bot] avatar netanelkoli avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.