Initia-testnet

@initiaUptime_bot

It can notify you via telegram when your validator starts skipping blocks. It also informs you about the time left before being sent to jail. And the best part? You don't need to install any software. Plus, it offers validator status check.

# RPC Endpoint
https://rpc.initia.web34ever.network:443
  
# LCD (Rest) API Endpoint
https://rest.initia.web34ever.network:1317
  
# GRPC Endpoint
https://grpc.initia.web34ever.network:9090

Initia Governance bot setup guide

This script simplifies the voting process on the Initia testnet. It checks for active proposals and sends their details to a specified Telegram chat using API requests. Users can then vote by selecting options in the Telegram chat. The script captures these responses and submits the votes accordingly.

Note: This script does not perform automatic voting. It facilitates the voting process by integrating with Telegram for user input.

## Prerequisites

1. [Install Go](https://golang.org/doc/install) if not already installed.
2. Install the Initia binaries and ensure they are in your PATH.
3. Install `jq` for JSON processing:
    ```bash
    sudo apt-get install jq
    ```

## Setup

1. **Clone the repository or download the script:**
    ```bash
    git clone https://github.com/web3validator/Initia_Goverannce_bot.git
    cd Initia_Goverannce_bot
    ```

2. **Edit the script (`initia_vote.sh`):**
    ```bash
    nano initia_vote.sh
    ```
    Update the following variables with your specific values:
    - `PROJECT`
    - `VOTE_ADDRESS`
    - `BIN`
    - `NODE_HOME`
    - `CHAT_ID`
    - `BOT_TOKEN`
    - `KEYRING`
    - `PASWD`

3. **Make the script executable:**
    ```bash
    chmod +x initia_vote.sh
    ```

## Running the Script

To run the script manually:
```bash
./initia_vote.sh
 ```
## Automate with Crontab
Open crontab:

 ```
crontab -e
 ```
Add the following line to run the script every hour:

 ```
0 * * * * /path/to/your/repository/initia_vote.sh
 ```

Replace /path/to/your/repository/ with the actual path to the script.

Save and exit the crontab editor.

## Logging
The script does not produce log files by default. To log the output, you can modify the crontab entry:

 ```
0 * * * * /path/to/your/repository/initia_vote.sh >> /path/to/your/repository/initia_vote.log 2>&1
 ```

Updates Coming Soon….

Now part of the validator’s commission goes to help the people of 🇺🇦 Ukraine who suffered from the war. Delegate now!