Skip to content

feat(discord-bot): add SolFoundry Discord Bot with bounty notifications#1069

Open
zengbinli wants to merge 8 commits intoSolFoundry:mainfrom
zengbinli:feat/discord-bot-853
Open

feat(discord-bot): add SolFoundry Discord Bot with bounty notifications#1069
zengbinli wants to merge 8 commits intoSolFoundry:mainfrom
zengbinli:feat/discord-bot-853

Conversation

@zengbinli
Copy link
Copy Markdown

@zengbinli zengbinli commented Apr 21, 2026

Bounty: Discord Bot for Bounty Notifications

Bounty: #853 | Reward: 500K $FNDRY | Tier: T2 | Domain: Integration


What This PR Delivers

A fully functional Discord bot that posts new bounties, displays leaderboards, and allows users to filter notifications by bounty type and reward level.

Architecture

automaton/discord-bot/
├── index.ts                    # Bot entry point, rich embed builder
├── package.json                # Dependencies (discord.js v14)
├── tsconfig.json               # TypeScript config
├── README.md                   # Setup & usage guide
├── services/
│   └── bounty-poller.ts        # Periodic API polling with EventEmitter
├── commands/
│   └── index.ts                # Slash command handlers
├── utils/
│   └── format.ts               # Tier colors, reward formatting
└── __tests__/
    └── bot.test.ts             # Vitest unit tests

Features

Feature Implementation
New bounty notifications Rich embeds with tier color, reward, domain
Polling Every 5 minutes (configurable), event-driven
/bounties List bounties with tier/domain filters
/leaderboard Top contributors with medals
/subscribe Per-user notification filters (tier, reward, domain)
/unsubscribe Remove preferences
/status Bot uptime, tracked bounties, subscriptions

Acceptance Criteria Met

  • New bounty postings with rich embeds
  • Leaderboard command with top contributors
  • Customizable notification filters per user

Setup

# Environment
DISCORD_BOT_TOKEN=your-token
DISCORD_CHANNEL_ID=your-channel
DISCORD_GUILD_ID=your-guild
DISCORD_CLIENT_ID=your-app-id
SOLFOUNDRY_API_URL=https://api.solfoundry.io

# Run
npm install && npm start

Wallet: 3D2uVzAsGhrWfUprHLwezCNkE1u9eK7SH2MAhbC3gFVN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant