A GitHub bot that enables cryptocurrency tipping on GitHub issues and pull requests using Polkadot Asset Hub.
- Tip Commands: Send DOT or USDC tips via GitHub comments
- Authorization: Team/organization membership-based access control
- Reactions: Visual feedback with emoji reactions (👀 for authorized, 👎 for unauthorized)
- Transaction Tracking: Real-time updates with blockchain transaction details
- Error Handling: Contextual error messages for authorized users only
Mention the bot in a comment with a tip command:
@fluffylabs-bot tip <address> <amount> <asset> [optional message]
Examples:
@fluffylabs-bot tip 12uGtv6u5vvUcog67hfLXqrM5anMhyoNuhtp8M1nyQtonwSK 10 DOT great work!
@fluffylabs-bot tip 12uGtv6u5vvUcog67hfLXqrM5anMhyoNuhtp8M1nyQtonwSK 25 USDC
Supported Assets: DOT, USDC
npm install
cp .env.example .env
# Configure environment variables in .env
npm start
Required environment variables:
GITHUB_ORG=your-org
GITHUB_TEAM=your-team
WALLET_SEED=your-wallet-seed
ASSET_HUB_RPC=wss://polkadot-asset-hub-rpc.polkadot.io
MAX_DOT_TIP=100
MAX_USDC_TIP=1000
npm test
npm run test-watch # Watch mode
npm run lint # Type checking
docker build -t fluffylabs-bot .
docker run --env-file .env fluffylabs-bot
The project uses GitHub Actions for continuous integration and deployment:
- CI Pipeline: Runs tests, linting, security audits on Node.js 18.x, 20.x, 22.x
- Docker Build: Validates Docker image builds
- Security: Automated dependency vulnerability scanning
- Deployment: Automated Docker image publishing to GitHub Container Registry on releases
- Dependencies: Automated dependency updates via Dependabot
Workflows:
.github/workflows/ci.yml
- Main CI pipeline.github/workflows/deploy.yml
- Release deployment
- Command Detection: Bot monitors comments for mentions and tip commands
- Authorization: Checks team/organization membership via GitHub API
- Validation: Validates address format, amount limits, and asset support
- Reactions: Adds emoji reactions based on authorization status
- Transaction: Sends blockchain transaction via Polkadot Asset Hub
- Updates: Edits initial comment with transaction results
See CONTRIBUTING.md for guidelines.
ISC © 2025 Fluffylabs