Code Monkey home page Code Monkey logo

honktipbot's Introduction

Honk Tip Bot

About

This is a telegram bot that allow you tip other users in telegram with a HONK Token. Add @Honktipbot to your group. Then make your tip to other user by replying on their messages with "[NUMBER] honk" (e.g. "10 honk").

Users can deposit and withdraw their HONK tokens. You could also setup notification for new deposits with separate service checkDeposits.

This bot powered with Telegraf library.

Supported commands:

  • /start
  • /help
  • /balance
  • /deposit
  • /withdraw

Installation and local launch

  1. Clone this repo:

    git clone https://github.com/KeithPatrick5/honktipbot
  2. Create AWS DynamoDB tables:

  • Bot-Session (primary key: SessionKey [string])
  • Bot-checkDeposit (primary key: address [string])
  1. AWS configure

  2. Create .env file with the environment variables listed in .env.example

  3. Install NodeJS 10x && npm 6x

  4. Run in the root folder

    npm install
  5. Run a local instance of RabbitMQ

    sudo docker run -p 5672:5672 -d --hostname my-rabbit --name some-rabbit rabbitmq:3
  6. Run

    npm start

Creator: pytour

honktipbot's People

Contributors

pytour avatar keithpatrick5 avatar lightswarm124 avatar kirkins 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.