How xdp64xg/torn-intel works
TornIntel is a faction-data analysis CLI: users choose a module and sync mode, the application imports Torn data, stores it locally, and exposes queries and reports. Its domain areas include attacks, chains, ranked wars and payouts, armoury, crimes, and revives; Discord provides a bridge to CLI commands plus community-management features. The graph reflects documented entry points and indexed references; several module implementations and wiring paths were not sampled, so uncertain links are omitted.
Main entry points: engine.py Command Engine · repositories Data Repositories · attacks Attacks Sync and Reports · discord_bot_service.py Discord Bot Bridge
Components 19
Command Interfaces
- Python Entry
main.py - CLI Parser and Commands
cli
Application Runtime
- Command Engine
core/engine.py - Service Container
services/container.py - HTTP Client
services/http_client.py
Faction Data Domains
- Attacks Sync and Reports
modules/attacks - Chains Sync and Queries
modules/chains - Ranked Wars and Payouts
modules/rankedwars - Armoury Data and Reports
modules/armoury - Crime Slots and Reports
modules/crimes - Revives and Requests
modules/revives
Persistence and Data
- Domain Models
models - SQLite Database
services/database.py - Data Repositories
repositories
Discord Features
- Discord Bot Bridge
services/discord_bot_service.py - Shoplifting Alerts
services/shoplifting_watcher.py - Revive Request Listener
services/revive_request_listener.py
Other components
- CLI User
- Torn API
Connections 25
- CLI User → Python Entry: runs
- Python Entry → CLI Parser and Commands: builds commands
main.py - Python Entry → Command Engine: creates
main.py - CLI Parser and Commands → Command Engine: dispatches
main.py - Command Engine → Service Container: uses services
core/engine.py - Command Engine → Attacks Sync and Reports: routes commands
core/engine.py - Command Engine → Chains Sync and Queries: routes commands
core/engine.py - Command Engine → Ranked Wars and Payouts: routes commands
core/engine.py - Command Engine → Armoury Data and Reports: routes commands
core/engine.py - Command Engine → Crime Slots and Reports: routes commands
core/engine.py - Command Engine → Revives and Requests: routes commands
core/engine.py - Attacks Sync and Reports → HTTP Client: requests data
modules/attacks/sync.py - Chains Sync and Queries → Domain Models: parses as
modules/chains/sync.py - Attacks Sync and Reports → Domain Models: parses as
modules/attacks/sync.py - HTTP Client → Torn API: requests data
- Command Engine → SQLite Database: stores synced data
- Data Repositories → SQLite Database: reads and writes
- Armoury Data and Reports → Data Repositories: queries data
modules/armoury/queries.py - Attacks Sync and Reports → Data Repositories: reports from
modules/attacks/report.py - Crime Slots and Reports → Data Repositories: queries slots
modules/crimes/queries.py - Revives and Requests → Data Repositories: stores requests
modules/revives/sync.py - CLI User → Discord Bot Bridge: uses bot
- Discord Bot Bridge → Python Entry: shells out
services/discord_bot_service.py - Discord Bot Bridge → Shoplifting Alerts: supports alerts
services/discord_bot_service.py - Discord Bot Bridge → Revive Request Listener: supports requests