Autobuy Bot is a production-grade, self-hosted Discord commerce bot built for crypto-only shops that sell digital goods — license keys, game accounts, downloads, configs, anything redeemable.
How it works
- Admins post a shop panel in any channel.
- Customers click Browse Shop, pick a product, choose a variant if available, and select a payment coin.
- The bot generates a brand-new wallet address per order, posts a payment embed with QR code and a 20-minute timer.
- A payment worker polls the blockchain (Blockcypher for LTC/BTC, Tatum for ETH, SOL, and USDT-BEP20), waits for confirmation, then transitions the order through a 10-state machine (AWAITING_PAYMENT → PAYMENT_DETECTED → CONFIRMING → DELIVERED).
- The delivery worker DMs the buyer their serial key or download link, applies delivery instructions, decrements stock, and sweeps funds to the owner wallet.
- If a refund is needed, an admin runs /refund and the refund worker sweeps funds back automatically with retry logic.
Highlights
- Multi-coin — LTC · BTC · ETH · SOL · USDT (BEP20), each toggleable on the fly.
- Variant products with independent per-variant pricing.
- Stock modes — Limited (counted) or Unlimited (digital downloads).
- Coupons, blacklists, rate limits, role-gated products, support tickets.
- Live analytics — daily/weekly revenue, conversion, top product.
- Config-driven theming — every color and emoji in config.yaml.
- Color-coded terminal logs + webhook channels for PAYMENT / DELIVERY / ERROR / STAFF / SECURITY / ANALYTICS.
