This is the practical setup path for a new Windows dev machine. It is intentionally boring, because new-machine setup should not be a rite of passage.
The production Linux host has its own shorter path in Deployment.
Use repo-relative commands from the Jane project folder.
Install:
- Git
- Python 3.11 or newer
- VS Code
Optional but useful:
- GitHub Desktop
- Windows Terminal
Clone the private Jane repo, then open the repo folder in VS Code.
The expected project root looks like:
C:\Projects\Jane-Clanker
From PowerShell in the project root:
py -m venv .venvIf py is not available:
python -m venv .venvYou do not need to activate the virtual environment.
Run:
.\.venv\Scripts\python.exe -m pip install --upgrade pip
.\.venv\Scripts\python.exe -m pip install -r requirements.txtFor development and test work, install the additional local tooling with:
.\.venv\Scripts\python.exe -m pip install -r requirements-dev.txtPreferred dev command:
.\.venv\Scripts\python.exe bot.pyThis avoids PowerShell activation policy issues, which are very real and very annoying.
If you do want to activate the venv and PowerShell blocks scripts, use a process-local policy:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
.\.venv\Scripts\Activate.ps1That only affects the current terminal window.
Jane needs secrets and runtime flags.
Start from:
.env.example
Create a local .env with real values for the machine. Keep it local. Secrets do not belong in Git.
Important values commonly needed:
DISCORD_BOT_TOKENROBLOX_OPEN_CLOUD_API_KEYROBLOX_INVENTORY_API_KEYROVER_API_KEYORBAT_GOOGLE_CREDENTIALS_PATHJANE_ENABLE_PRIVATE_EXTENSIONSJANE_ENABLE_AUTO_GIT_UPDATE
Never commit .env.
Most server IDs, channel IDs, role IDs, and feature tuning live in:
config.py
Before running against a dev server, check:
serverIdserverIdTestingallowedCommandGuildIds- channel IDs for the feature being tested
- role IDs for the feature being tested
ORBAT and sheet-backed features need the Google credentials JSON file.
Prefer repo-relative paths in .env, for example:
ORBAT_GOOGLE_CREDENTIALS_PATH=localOnly/credentials/jane-clanker.jsonDo not commit credential JSON files.
Jane uses SQLite:
bot.db
The DB is local runtime state. Do not commit it. The database is not a souvenir.
If a dev machine needs production-like state, use an intentional backup/restore path rather than pulling a random .db through Git.
- Install dependencies.
- Add
.env. - Confirm
config.pypoints at the intended guild. - Start with
.\.venv\Scripts\python.exe bot.py. - Watch terminal startup logs.
- Check
logs/general-errors.logif startup fails. - Confirm Jane appears online in the target guild.
- Confirm slash commands are synced before testing commands.
-
Activate.ps1 cannot be loaded because running scripts is disabledUse.\.venv\Scripts\python.exe bot.pydirectly or set process-local execution policy. -
ModuleNotFoundErrorRun dependency install again with the venv Python. -
Jane starts but commands are missing. Check guild IDs, command sync logs, and command clear flags.
-
Jane cannot access a channel. Check the channel ID and bot permissions.
-
Roblox or ORBAT features fail. Check API keys, credential path, and whether the local file exists.
-
Git update behavior is unexpected. Check
JANE_ENABLE_AUTO_GIT_UPDATEand Auto Git Update.
- Run risky features in a test guild first.
- Keep
.env,.db, and credentials out of Git. - Prefer repo-relative paths.
- Use
git status --shortbefore pulling or pushing. - Ask before wiping local changes on a shared machine.