Giter Site home page Giter Site logo

shardeum-bot's Introduction

Гайд на русском - https://teletype.in/@skaarj/P7aI0FoNjNh

1. Install bot

  1. Install git - sudo apt install git
  2. Check git version - git --version
  3. Install Nodejs (https://github.com/nodesource/distributions/blob/master/README.md)
  4. Check NodeJs cersion - node --version
  5. Create folder for bot mkdir shardeum-bot and go to cd shardeum-bot
  6. Clone project git clone https://github.com/berejznoy/status-pushover.git
  7. Go to cd status-pushover and run npm i
  8. Change variables
    YOUR_IP - Shardeum Dashboard IP
    YOUR_PASSWORD - Paasword of Dashboard
    YOUR_TG_BOT_TOKEN - Telegram bot token (Go to https://t.me/BotFather for get it)
    and run below command
sudo tee .env > /dev/null <<EOF
PORT=3000
BASE_URL=https://YOUR_IP:8080
DASHBOARD_PASSWORD=YOUR_PASSWORD
INTERVAL=60000
TELEGRAM_BOT_TOKEN=YOUR_TG_BOT_TOKEN
EOF
  1. Install pm2 - npm install pm2 -g
  2. Run bot - npm run build then pm2 start dist/index.js -n shardeum-bot

2. Stop bot

pm2 stop shardeum-bot

3. Restart bot

pm2 start shardeum-bot

4. Check bot

pm2 list

Update bot

  1. Go to bot folder
  2. Run pm2 delete shardeum-bot to delete bot
  3. Run git pull to download update
  4. Run npm i to install dependencies
  5. Run npm run build then pm2 start dist/index.js -n shardeum-bot - to start bot
  6. Run pm2 list to check bot

To check the logs, run pm2 log

Error: Failed to get token: AxiosError: Request failed with status code 403 Solution: Rewrite your password in .env file

shardeum-bot's People

Contributors

berejznoy avatar ivan-strelka 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.