Errorist79 / axelar-vote-notify

Notification bot for Axelar EVM votes. Sends alerts when voted NO/compares the votes with the majority.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

axelar-vote-notify

Axelar voter notify bot.

Setup

cd $HOME
mkdir $HOME/voter && cd $HOME/voter
wget https://raw.githubusercontent.com/Errorist79/axelar-vote-notify/main/app.py

Deps

sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.8
sudo apt-get install python3-pip -y
python3 -m pip install os-sys
python3 -m pip install requests
python3 -m pip install -U discord.py

Start

python3 app.py

Environments

TOKEN = "#PUT_YOUR_BOT_TOKEN_HERE"
query_time = #API_QUERY_TIME_SEC

If you vote against the majority, the bot can also send alerts for it. The following parameter specifies the majority percentage. For example, if you set it to 70, it will send you an alert if more than 70% of validators voted NO and you voted YES.

min_status = #Majority percentage

About

Notification bot for Axelar EVM votes. Sends alerts when voted NO/compares the votes with the majority.

License:Apache License 2.0


Languages

Language:Python 100.0%