GithubHelp home page GithubHelp logo

czarcas7ic / osmosis-discord-faucet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cosmwasm/cosmos-discord-faucet

3.0 0.0 4.0 130 KB

Discord faucet bot for Osmosis

License: GNU General Public License v3.0

Python 100.00%

osmosis-discord-faucet's Introduction

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

osmosis-discord-faucet's People

Contributors

c29r3 avatar czarcas7ic avatar orkunkl avatar the-frey avatar

Stargazers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.