Repository navigation
Discord Bot
Stephane Pareilleux edited this page Mar 22, 2026
·
1 revision
The Demerzel Discord Bot (demerzel-bot) is an always-on governance coordinator and teaching assistant for the GuitarAlchemist AI ecosystem.
Repo: GuitarAlchemist/demerzel-bot
- Demerzel persona — governance reports, constitutional guidance, audit results, conscience signals
- Seldon persona — music theory teaching, research outputs, course delivery, knowledge transfer
- Auto-detects persona from channel context and message content
- Embeds responses with color-coded persona indicators
- Maintains per-channel conversation history (last 10 exchanges)
| Component | Technology |
|---|---|
| Runtime | Node.js >= 18.0.0 |
| Discord | discord.js v14 with Message Content Intent |
| AI | Anthropic SDK (Claude Sonnet) |
| Governance | Operates under Demerzel constitution |
| System prompts | Dual: Demerzel + Seldon — switched by channel |
| Channel | Persona | Posts |
|---|---|---|
#general |
Auto-detect | Welcome, announcements |
#governance |
Demerzel | Audits, directives, conscience signals |
#academy |
Seldon | Courses, research results |
#research |
Seldon | Ideation, knowledge digests |
#dev-ops |
Demerzel | CI, health scores, driver cycles |
Demerzel posts to #governance with:
- Weekly governance audit summaries
- Conscience signal alerts
- Cross-repo directive status
- Belief state updates
- Compliance report summaries
Color: Indigo embed (#3f51b5)
Seldon posts to #academy and #research with:
- Course deliveries from Streeling University research cycles
- Research finding summaries (tetravalent-tagged)
- Knowledge transfer digests
- Answer queries with source citations
Color: Teal embed (#009688)
git clone https://github.com/GuitarAlchemist/demerzel-bot.git
cd demerzel-bot
npm install
cp .env.example .env
# Edit .env with your tokens
node src/bot.js| Variable | Description |
|---|---|
DISCORD_BOT_TOKEN |
Discord bot token from Developer Portal |
ANTHROPIC_API_KEY |
Anthropic API key for Claude |
node scripts/create-channels.jsCreates governance, academy, research, and dev-ops channels in your guild.
The bot is wired into Demerzel's governance pipeline:
-
Governance alerts — conscience signals with weight >= 0.8 post to
#governanceautomatically -
Research delivery — when a Seldon research cycle produces a new course, summary posts to
#academy -
Driver cycle reports —
/demerzel-driveposts its summary to#dev-ops -
Audit results —
/demerzel-auditposts to#governancewhen run with--discordflag
watch(agent.conscience_signals, filter: "severity >= 0.5")
→ when severity >= 0.8:
discord.post(channel: "#governance", embed: critical_alert)
→ when severity >= 0.5:
discord.post(channel: "#governance", embed: signal_summary)
-- Research cycle completion
watch(state/streeling/courses/, filter: "new_course")
→ discord.post(channel: "#academy", embed: course_summary)
- Architecture — bot role in the system
- Personas — Demerzel and Seldon persona definitions
- Metrics-and-Observability — Discord as a reporting channel
- Streeling-University — Seldon's course output posted to #academy
- Conscience-System — conscience signals routed to #governance