Skip to content

BigMichi1/IdleCodeRedeemer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

241 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Idle Champions Code Redeemer Bot

A Discord bot that automatically scans for and redeems Idle Champions promo codes.

📖 Quick Links to Documentation:

🚀 Quick Start (5 minutes)

Development (Local)

# 1. Install dependencies
mise run install

# 2. Configure environment
cp .env.example .env
# Edit .env with your DISCORD_TOKEN, server IDs, and generate an encryption key:
#   openssl rand -hex 32  → paste result as ENCRYPTION_KEY

# 3. Start the bot
mise run dev

Don't have Mise? Install it first

# macOS/Linux
curl https://mise.jdx.dev/install.sh | sh

# Or with Homebrew
brew install mise

🐳 Docker Deployment

Deploy the bot using the pre-built Docker image:

# 1. Copy the example compose file
cp docker-compose.example.yml docker-compose.yml

# 2. Set required environment variables
export DISCORD_TOKEN=your_bot_token_here
# Generate ENCRYPTION_KEY once and store it safely (e.g. in a .env file or secret store).
# ⚠️  Never regenerate this value for an existing database — previously saved credentials
#     will become unreadable if the key changes.
export ENCRYPTION_KEY=$(openssl rand -hex 32)

# 3. Start the bot
docker-compose up -d

Don't have Docker? Use Podman instead - it's a drop-in replacement with identical syntax.

See docker-compose.example.yml for all available configuration options.

Pull specific versions:

  • ghcr.io/bigmichi1/idlecoderedeemer:latest - Latest main branch build
  • ghcr.io/bigmichi1/idlecoderedeemer:v1.0.0 - Specific release
  • ghcr.io/bigmichi1/idlecoderedeemer:main-<sha> - Specific commit

✨ Features

  • 🤖 Slash Commands - /setup, /redeem, /catchup, /autoredeem, /inventory, /open, /blacksmith, /codes, /makepublic, /backfill, /deleteaccount, /help
  • 🔄 Auto Code Detection - Scans Discord messages for codes automatically
  • ⏮️ Message History Backfill - Recover missed codes from message history with built-in rate limiting
  • 🔁 Catch Up - Redeem all known valid codes in one command (great for new members)
  • 🤖 Auto-Redeem Toggle - Enable or disable automatic code redemption per user (/autoredeem)
  • 🎁 Code Redemption - Submit codes and get rewards
  • 📦 Chest Management - Open chests and view loot
  • ⚒️ Blacksmith - Upgrade heroes with contracts
  • 📊 Inventory - View gold, rubies, equipment, and progress
  • 🗑️ Account Deletion - GDPR-friendly self-service data removal (/deleteaccount)
  • 💾 Secure Storage - SQLite database keeps credentials safe and local
  • 👥 Multi-User - Each user manages their own account
  • Fast - Built on Bun for 3-4x performance vs Node.js

📚 Full Documentation

For detailed information, please see:

📄 License

See LICENSE file

About

Automated Idle Champions code scanner and redemption

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • TypeScript 92.7%
  • Shell 4.9%
  • JavaScript 1.7%
  • Dockerfile 0.7%