Refator eco code. Split into modules
Some checks failed
Test & Deploy / test (push) Has been cancelled
Test & Deploy / deploy (push) Has been cancelled

This commit is contained in:
Rene Arumetsa
2026-07-27 00:49:34 +03:00
parent d89383ee20
commit 83a60cda55
21 changed files with 2413 additions and 2215 deletions

View File

@@ -486,7 +486,20 @@ Every slash command invocation is logged with the user ID, display name, and all
├── strings.py # All user-facing strings (command descriptions, help text, errors)
├── config.py # Environment variable loader
├── core/
│ ├── economy.py # TipiCOIN business logic, constants (SHOP, COOLDOWNS, EXP_REWARDS, ...)
│ ├── economy/ # TipiCOIN business logic (re-exported via core/economy/__init__.py)
│ │ ├── store.py # User records, per-user locks, time/cooldown helpers, txn log
│ │ ├── house.py # House account (fines in, heists out)
│ │ ├── levels.py # EXP, levels, vanity roles
│ │ ├── shop.py # Item catalogue + /buy
│ │ ├── income.py # /daily, /work, /beg, /crime, /rob, /give
│ │ ├── gambling.py # /roulette, /slots, /rps, /blackjack
│ │ ├── fishing.py # Fish catalogue + minigame flows
│ │ ├── quests.py # Daily/weekly quest system
│ │ ├── prestige.py # Prestige resets + upgrade shop
│ │ ├── jail.py # Jail, jailbreak, bail
│ │ ├── heist.py # Group heists against the house
│ │ ├── leaderboards.py # All leaderboard queries
│ │ └── admin.py # Admin mutations + season reset
│ ├── pb_client.py # Async PocketBase REST client (auth + CRUD for economy_users)
│ ├── sheets.py # Google Sheets read/write + in-memory cache
│ └── member_sync.py # Role/nickname/birthday sync logic