Fonzie 👍
The interchain cosmos faucet for discord.
- Disambiguates by bech32 prefix
- Supports multiple chains at once & rate-limiting
- State-of-the-art emoji response technology. Inspired by the fonz 👍
Building
go build .
Usage
Environment Variables
BOT_TOKEN
-- Create a Discord token
MNEMONIC
-- 12 or 24 word seed string, shared for each chain
CHAINS
-- A JSON object, keyed by each bech32 prefix, value is a RPC endpoint
FUNDING
-- Similar to CHAINS, value is how much funding to sip with each tap
FUNDING_INTERVAL
-- Optional; specify funding interval -- e.g. 12h
. Defaults to 12 hours.
GCP_PROJECT
-- Specify gcp project where firestore is located (for funding persistence)
GCP_CREDENTIALS
-- json service account credentials encoded in base64
SILENT
-- if set to a non-empty string omit all responses except error notifications
An example configuration supporting Umee, Atom, Juno & Osmosis
BOT_TOKEN='<discord bot token>'
MNEMONIC='<12 or 24 word mnemonic>'
CHAINS='[{"prefix":"umee","rpc":"https://rpc.alley.umeemania-1.network.umee.cc:443"},{"prefix":"cosmos","rpc":"https://rpc.flash.gaia-umeemania-1.network.umee.cc:443"},{"prefix":"juno","rpc":"https://rpc.section.juno-umeemania-1.network.umee.cc:443"},{"prefix":"osmo","rpc":"https://rpc.wall.osmosis-umeemania-1.network.umee.cc:443"}]'
FUNDING='{"umee":"100000000uumee","cosmos":"100000000uatom","juno":"100000000ujuno","osmo":"100000000uosmo"}'
Running
./fonzie
Bot Commands
See help.md. This file is rendered for the !help
command.
Screenshots
Releasing
Example
- Suppose you want to release version
v99.99.99
- Make sure you are on main and have a clean git state
bin/release v99.99.99
Output
Everything up-to-date
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
To github.com:umee-network/fonzie.git
* [new tag] v99.99.99 -> v99.99.99