/lava-discord-faucet

Discord faucet bot for Lava

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Lava-discord-faucet

Discord faucet bot for LAva

List of available commands:
  1. Request coins through the faucet
    $request lava@1a5zxevtdwhy4ddj662rl8xqyqsnrdmv7007g32

Transaction status explanation:
✅ - mean bot send transaction to your address

  1. Displays the current status of the node where faucet is running
    $faucet_status

  2. Show faucet address
    $faucet_address

  3. Show transaction information for a specific transaction ID
    $tx_info 5C501EA776F66ADB6A5A3C13D876382FFE431A461E1AA7AD7A19D70C6B765A97

  4. Show address balance
    $balance lava@1a5zxevtdwhy4ddj662rl8xqyqsnrdmv7007g32

Requirements

  • python3.10+
  • Cosmos REST server (default port 1317)
  • Cosmos RPC server (default port 26657)

How to install

  1. Run command below
apt update \
&& apt install -y python3-pip python3-venv git tmux \
&& git clone https://github.com/lavanet/lava-discord-faucet.git \
&& cd lava-discord-faucet \
&& python3 -m venv venv \
&& source venv/bin/activate \
&& pip3 install -r requirements.txt
  1. Create Discord token
  2. Fill in config.ini
  3. Fill in .env file (see env.example)
  4. Invite the bot to your channel
  5. Start Lava Daemon and sync the node

How to run

Start faucet bot

tmux new -s discord_faucet_bot -d cd ~/lava-discord-faucet && source venv/bin/activate && python3 discord_faucet_bot.py

Alternatively, the bot can be run through systemd:

  • If necessary, change the username and the path to the script folder in discord-faucet-bot.service

  • Start the service

ln -s $HOME/lava-discord-faucet/lava-faucet-bot.service /etc/systemd/system/ \
&& systemctl daemon-reload \
&& systemctl enable lava-faucet-bot.service \
&& systemctl start lava-faucet-bot.service \
&& systemctl status lava-faucet-bot.service