Discord
Discord
Mu includes a Discord bot that gives you access to the AI agent directly from chat. Ask questions, check markets, get news, trade tokens — all without leaving Discord.
Setup (Self-hosting)
- Go to discord.com/developers/applications
- Create a new application
- Go to Bot → click Reset Token → copy the token
- Enable Message Content Intent under Privileged Gateway Intents
- Set the token in Mu: go to
/admin/envand paste it under Discord → DISCORD_BOT_TOKEN, or set the environment variable - Invite the bot to your server:
Replacehttps://discord.com/oauth2/authorize?client_id=YOUR_APP_ID&scope=bot&permissions=2048YOUR_APP_IDwith the Application ID from the General Information page.
The bot connects automatically when the token is set. No restart needed.
Using the Bot
First time
Just DM the bot or @mention it in a channel. If you don’t have a Mu account, one is created automatically from your Discord username. You’re ready to go immediately.
Linking an existing account
If you already have a Mu account and want to link it:
Option 1 — DM with credentials:
link myusername mypassword
Only works in DMs (not channels) for security.
Option 2 — Link code:
- Go to
/accounton your Mu instance - Click Generate Link Code
- DM the bot:
link a3f7b201
Talking to the bot
DM or @mention the bot with anything:
- “What’s the BTC price?”
- “Read my email”
- “Today’s news”
- “Weather in London”
- “Swap 0.1 ETH for USDC”
The bot remembers the last 10 messages for conversation context, so follow-ups work naturally.
Slash commands
The bot registers these slash commands automatically:
| Command | Description |
|---|---|
/agent |
Ask the AI agent anything |
/news |
Latest news headlines |
/markets |
Live market prices (crypto, futures, commodities) |
/weather |
Weather forecast with optional location |
/mail |
Check your inbox |
/swap |
Get a swap quote with token dropdowns |
/balance |
Trading wallet balances |
/apps |
Browse or search apps |
/social |
Social feed |
/video |
Search videos |
/blog |
Latest blog posts |
/search |
Search across all content |
Slash commands show a “thinking” indicator while the agent processes, then respond with a rich embed.
Unlinking
DM the bot unlink to disconnect your Discord from your Mu account.
Notifications
The bot proactively DMs you when:
- A trading strategy signal triggers (alert or confirm mode)
- A trade auto-executes (auto mode) — includes the reason and tx hash
Rich Embeds
Responses are formatted as Discord embeds with color coding:
- 🟣 Purple — News
- 🟢 Green — Markets and prices
- 🟡 Gold — Weather and trading
- 🔴 Red — Mail and video
- 🔵 Blue — General, social, blog
Security
- Auto-created accounts get a random password. The user authenticates via Discord — they never need the password unless they want to log in on the web.
- Link with credentials only works in DMs, never in channels.
- Link codes expire after 5 minutes and are single-use.
- All data access is scoped to the linked Mu account — one user can’t access another’s mail, wallet, or trades.
Multiple Servers
The bot works across any number of Discord servers. Each user links their own Mu account independently. The bot only responds to DMs and @mentions — it doesn’t read all channel messages.








