Skip to content

Latest commit

 

History

History
69 lines (50 loc) · 1.99 KB

File metadata and controls

69 lines (50 loc) · 1.99 KB

🦀 crabbo

Discord bot built in Rust for interacting with the Klever blockchain.

🚧 Work in Progress 🚧

About   |    Commands   |    Requirements   |    Setup   |    Docker

About

Discord bot built in Rust for interacting with the Klever blockchain.

Commands

Command Description
/ping Replies with pong
/wallet <address> [network] Returns the KLV balance of a wallet address. Network defaults to mainnet, accepts testnet

Requirements

Setup

1. Clone the repository

git clone https://github.com/ernstbecker/crabbo
cd crabbo

2. Configure environment variables

make setup

Edit .env:

DISCORD_TOKEN=your_bot_token_here
GUILD_ID=your_guild_id_here   # optional — omit to register commands globally

If GUILD_ID is set, commands are registered only for that server (instant update). Without it, commands are registered globally (may take up to 1 hour to propagate).

3. Run

make run

Docker

docker compose up

License

GPL-3.0-or-later