GithubHelp home page GithubHelp logo

isabella232 / avalanchetipbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hakanatabas/avalanchetipbot

0.0 0.0 0.0 548 KB

Avalanche Tip Bot for telegram, twitter and discord.

License: BSD 3-Clause "New" or "Revised" License

JavaScript 100.00%

avalanchetipbot's Introduction

Project requirements

The Avalanche Tip bot requires:

  • a telegram bot account OR a discord application

Optional:

  • a twitter API key

This project can be used to grant AVAX tips on:

  • Telegram without Discord / Twitter
  • Discord without Telegram / Twitter
  • Telegram and Discord without Twitter

It can not be used only for twitter without at least Telegram or Discord.

Install the following Infrastructure

This project requires the following infrastructure requirements

  • a Nodejs service. We use pm2 to monitore the state of the nodejs service
sudo apt update
sudo apt install nodejs
sudo apt install npm
nodejs -v
  • a git account
sudo apt install git-all

Suggested command (change your user / password )

sudo su
docker run --name mongodb \
 -v /path/to/mongodb-persistence:/bitnami/mongodb \
 -e MONGODB_USERNAME=my_user -e MONGODB_PASSWORD=password123 \
 -e MONGODB_DATABASE=my_database bitnami/mongodb:latest

Verify that your docker database is running

docker ps

Installation

  • Clone the project
  • Install all dependencies of the nodejs project with
git clone [url of the project]
npm i

Configuration

Configure global configuration file

global_config.js

Install PM2 and run you NodeJS Service

pm2 list : will list all your pm2 process
pm2 start index.js --name avalanchetipbot --max-memory-restart 250M
pm2 save

Invite the tipbot in your Telegram Groups & Discord Groups

For example, shall be an invite link like that for discord

Define Discord roles & credentials for Embedded content

License

BSD-3-Clause License

avalanchetipbot's People

Contributors

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