Skip to content

cannacoin-official/avalanchetipbot

 
 

Repository files navigation

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

About

Avalanche Tip Bot for telegram, twitter and discord.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%