Гайд на русском - https://teletype.in/@skaarj/P7aI0FoNjNh
- Install git -
sudo apt install git
- Check git version -
git --version
- Install Nodejs (https://github.com/nodesource/distributions/blob/master/README.md)
- Check NodeJs cersion -
node --version
- Create folder for bot
mkdir shardeum-bot
and go tocd shardeum-bot
- Clone project
git clone https://github.com/berejznoy/status-pushover.git
- Go to
cd status-pushover
and runnpm i
- 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
- Install pm2 -
npm install pm2 -g
- Run bot -
npm run build
thenpm2 start dist/index.js -n shardeum-bot
pm2 stop shardeum-bot
pm2 start shardeum-bot
pm2 list
- Go to bot folder
- Run
pm2 delete shardeum-bot
to delete bot - Run
git pull
to download update - Run
npm i
to install dependencies - Run
npm run build
- make build - Run
pm2 start dist/index.js -n shardeum-bot
- to start bot - Run
pm2 list
- to check bot
Error: Failed to get token: AxiosError: Request failed with status code 403 Solution: Rewrite your password in .env file