Skip to content

czarcas7ic/osmosis-discord-faucet

 
 

Repository files navigation

osmosis-discord-faucet

Discord faucet bot for Osmosis

List of available commands:
  1. Request coins through the faucet
    $request osmo1a5zxevtdwhy4ddj662rl8xqyqsnrdmv7007g32

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 osmo1a5zxevtdwhy4ddj662rl8xqyqsnrdmv7007g32

Requirements

  • python3.6+
  • 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/czarcas7ic/osmosis-discord-faucet.git \
&& cd osmosis-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. Invite the bot to your channel
  4. Start Osmosis Daemon and sync the node

How to run

Start faucet bot

tmux new -s discord_faucet_bot -d cd ~/osmosis-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/osmosis-discord-faucet/osmosis-faucet-bot.service /etc/systemd/system/ \
&& systemctl daemon-reload \
&& systemctl enable osmosis-faucet-bot.service \
&& systemctl start osmosis-faucet-bot.service \
&& systemctl status osmosis-faucet-bot.service

About

Discord faucet bot for Osmosis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%