fonzie

command module
v1.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

README

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

Screen Shot 2022-04-08 at 12 49 55 AM

Releasing

Example
  1. Suppose you want to release version v99.99.99
  2. Make sure you are on main and have a clean git state
  3. 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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL