aomarket-bot

Standalone Anarchy Online market-tracking bot

View the Project on GitHub zznathans/aomarket-bot

db

The data layer: SQLAlchemy (async) models and the two repositories everything else in the app talks to instead of touching the database directly.

Files

Migrations

Schema changes go through Alembic — migration scripts live in /migrations at the repo root, driven by alembic.ini. There’s no separate migration Job; main.py (via the bot process itself) is expected to be run against an already-migrated database — run alembic upgrade head as part of your deploy step.

How it’s used

MarketRepo and SettingsRepo are constructed per-request/per-cycle by MarketService, which is the only thing that reaches into db directly. Neither the API routes nor the chat command layer talk to this module directly.