Skip to content

Dev#65

Merged
calmmage merged 8 commits intomainfrom
dev
Mar 28, 2026
Merged

Dev#65
calmmage merged 8 commits intomainfrom
dev

Conversation

@calmmage
Copy link
Copy Markdown
Owner

No description provided.

calmmage and others added 8 commits March 16, 2026 01:49
Replace all motor.motor_asyncio imports with pymongo async equivalents:
- AsyncIOMotorClient → AsyncMongoClient
- AsyncIOMotorDatabase → AsyncDatabase
- AsyncIOMotorCollection → AsyncCollection
Remove motor from pyproject.toml dependencies.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
New botspot i18n component (dict-based, no gettext):
- botspot/components/middlewares/i18n.py — core: t(), set_lang(), get_lang(),
  register_strings(), I18nMiddleware (detects locale from Telegram language_code)
- botspot/components/middlewares/i18n_strings.py — ~80 en/ru string pairs
- botspot/i18n.py — convenience re-export

Wired into framework:
- I18nMiddleware registered first in bot_manager.setup_dispatcher()
- I18nSettings added to BotspotSettings

Replaced hardcoded strings with t() in 10 component files:
access_control, chat_binder, user_interactions, bot_commands_menu,
auto_archive, telethon_manager, trial_mode, error_handler,
llm_provider, multi_forward_handler

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- pr-checks.yml: replace src with botspot (fix_repo had reverted earlier fix)
- pyproject.toml: add lizard to test deps for complexity check
- mkdocs.yml: trim nav to existing docs only (was referencing 16 missing pages)
- docs/index.md: remove broken links to nonexistent doc pages

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Regenerate broken uv.lock, apply ruff autofixes and formatting.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@calmmage calmmage merged commit 9db71e2 into main Mar 28, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant