Documentation
Install
- Download the installer and run it. It does not need administrator rights.
- SmartScreen warning: the installer is not code-signed yet, so Windows may show "Windows protected your PC". Choose More info, then Run anyway.
- You need Python 3.10 or newer on your computer. On first start a checklist detects Python and tells you what is missing.
Your first lesson
Open the Learning path from the side bar, pick lesson 1 (the /ping command), and choose a folder to create the project in. A new folder is always created; nothing existing is overwritten.
The explanation panel opens beside the editor: each step lights up its lines and explains them. Move through the steps and press "finish" on the last one. Your progress is saved.
If you edit code above a step's lines, the highlighted lines may no longer match the explanation. This is known and noted in the panel.
Running your bot and the token
- Trust the folder: when you open a folder the app asks whether you trust it, because running code requires it.
- A bot you already have: open its folder as it is. The app picks the start file (
main.py,bot.pyand similar, or the file that starts the bot), and you can change it from the list next to Run. - Install requirements: the install button creates a
.venvfor the project and installs what is inrequirements.txt, or, when there is none, thedependencieslist ofpyproject.toml(needs Python 3.11 or newer). - The token: put it in Settings. It is stored encrypted and cannot be read back from the window (write-only). When you press Run it is given to your bot in
DISCORD_TOKEN, so read it withos.environ["DISCORD_TOKEN"]and never write it in a file. The log hides it. - Run and stop: the buttons in the top bar, or F5 and Shift+F5. Your bot's output appears in the Log tab, and if a run fails the app explains why and suggests a fix.
The simulator
The simulator runs your bot unchanged against a pretend Discord: no network, no token, no server. Open the Simulator tab in the bottom panel and press start. The pretend server has the channels #general, #bot-commands and #mod-log and these people: Alex (admin), Sam (member), RoboHelper (a bot) and Jordan (joins and leaves), and your bot, TestBot. Switch who is acting from the toolbar.
It copies what Discord really does:
- The Message Content intent: if you do not enable it, message text arrives empty, and you are told why.
- The Server Members intent for join and leave events.
- A command you never synced with
tree.sync()is shown disabled, with the reason. - The three-second rule, one answer per interaction, ephemeral replies,
deferandfollowup. - After every action the lines of your own files that ran are lit in the editor, and the response time is shown.
| Area | Status |
|---|---|
| Slash commands (groups, subcommands) and string, number, boolean, user options | tested |
| Buttons, string select menus, modals, embeds | tested |
| Members joining and leaving, kick | tested |
| Ban, timeout, roles; channel and role options; user/role selects; prefix commands; cogs | implemented, not covered by automated tests |
| Autocomplete, context-menu commands, attachments, voice, threads, rate limits, several servers | not simulated |
Your bot's settings in the simulator (.env.simulator)
The simulator only stands in for Discord. If your bot needs a database or other settings, put them in a .env.simulator file in your project (the same format as .env). The app gives them to your bot before it starts, so they win over .env (python-dotenv never overwrites a variable that is already set). Settings you do not name still come from .env.
- If
.envnames a database (such asDATABASE_URL) that.env.simulatordoes not replace, the app warns you before it starts and offers to create the file with empty values, so your bot never reaches your real database. Saved tests and AI apps never start the simulator in that case. - The usual token names (
DISCORD_TOKEN,DISCORD_BOT_TOKEN,BOT_TOKENandTOKEN) always hold a placeholder in the simulator. - If your bot stops before it is ready (an import error, a missing setting, a database that does not answer), the simulator tells you why, and how to fix it, right in the chat.
The simulator approximates Discord; it does not replace it. What works in it may still fail on Discord, so test on the real thing before you rely on it. Any attempt to reach Discord from inside it is refused.
Bot map and checks
Open the Bot map (Ctrl+Shift+M): it lists your project's commands, events, buttons and scheduled tasks, you can search it, clicking an item jumps to its line and lights up its whole code (click again to turn it off), and it suggests the permissions your code needs. It reads your code with Python's ast without running it.
Checks show common problems in the editor, including: using message.content without the message content intent, on_member_join without the members intent, commands never synced with tree.sync(), time.sleep inside an async function, a token written in the code, a missing await before send_message, and answering one interaction twice. The checks are hidden during the "find the bug" lesson so they do not give the answer away.
Invite link
The Bot map has an invite link tool: type your Application ID (it is not secret) and it builds the link with the bot and applications.commands scopes and the permissions your code needs. Copy the link and open it yourself.
AI assistants (MCP)
You can let the AI app you already use (Claude Code, Cursor, or anything that supports MCP) work inside the app: it can see your project, edit its files, run it, read its log, test your bot in the simulator, and look at the lessons and your progress. There is no server of ours, no account and no key: the AI app talks to Musaed Engine on your computer.
- Open Settings → AI assistants (MCP) and tick the option. It is off by default.
- Copy the line that fits your app (Claude Code, an app that takes a URL, or an app that starts commands) and paste it there.
- Keep the app open while you work. The "New secret" button invalidates the old secret at once.
What it cannot do: see, read or change your token (there is no tool for it, and a run it starts does not receive it), trust a folder for you, change settings or the secret, or reach files outside the open project.
Honestly: Python is not sandboxed. An AI app that writes a Python file and runs it has your account's permissions, and hiding the token covers only the token. Connect only apps you trust, and switch it on when you need it.
Keyboard shortcuts
On a Mac use Cmd instead of Ctrl. The same list is in Settings.
| Keys | Action |
|---|---|
| F5 / Shift+F5 | Run / stop the bot |
| Ctrl+S / Ctrl+Shift+S | Save / save all |
| Ctrl+P | Quick open a file |
| Ctrl+W | Close tab |
| Ctrl+Shift+O | Open folder |
| Ctrl+Shift+E / Ctrl+Shift+M | File explorer / bot map |
| Ctrl+E | Show or hide the explanation panel |
| Ctrl+J | Fold or unfold the bottom panel |
| Ctrl+Shift+L / Ctrl+Shift+Y | Log / simulator |
| Ctrl+, | Settings |
In the editor the usual Monaco keys work: Ctrl+Z Ctrl+Y Ctrl+F Ctrl+H Ctrl+G Ctrl+/ Alt+↑/↓ Ctrl+D F1.
Updates and privacy
The app looks for a newer version when it starts and every few hours, downloads it quietly, and then shows "Restart and update" in Settings (it also installs when you close the app). You can switch the check off in Settings. The check sends nothing but the request itself.
Anonymous usage counts are on by default; you can turn them off and delete what was sent in Settings. Full details on the privacy page.
The installer is not code-signed yet; its only protection is the server address (https) and the file hash in latest.yml.
Troubleshooting
- "Python not found": install Python 3.10 or newer from python.org and reopen the app. If you have several, choose one in the checklist.
- The bot does not connect: check the token in Settings and that the intents are enabled in the Discord developer portal. Try the simulator to separate a code problem from a connection problem.
- Slash commands do not show in Discord: make sure
tree.sync()is called (the checks warn if it is missing) and that you invited the bot with theapplications.commandsscope. - The app closed unexpectedly: when you reopen it, it offers to restore your unsaved edits.
- The AI app does not connect: check that the option is on and the app is open, and copy the lines from Settings again if you changed the secret. A 401 error means the secret changed.