Skip to content

Commit b309a8b

Browse files
committed
feat: updated help
1 parent 353617e commit b309a8b

File tree

4 files changed

+170
-237
lines changed

4 files changed

+170
-237
lines changed

userbot/locales/core/en.json

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@
1010
"prompt_2fa": "️🔐 This account is protected by Two-Factor Authentication. Please enter your password (2FA):",
1111
"prompt_lang": "Choose a language for this account (e.g., `ru` or `en`):",
1212
"prompt_activate": "Activate this account immediately? (yes/no):",
13-
"prompt_device": "Do you want to set a custom device? If not, a random one will be generated. (yes/no):",
14-
"prompt_device_model": "Enter device model (e.g., `iPhone 14 Pro Max`):",
15-
"prompt_system_version": "Enter system version (e.g., `iOS 16.5.1`):",
16-
"prompt_app_version": "Enter app version (e.g., `10.0.1`):",
17-
"verifying_creds": "🔎 Verifying credentials and checking for duplicates...",
13+
"verifying_creds": "🔎 Verifying credentials...",
1814
"err_duplicate_session": "❌ Error: An account with Telegram ID `{user_id}` already exists in the database as `'{existing_name}'`.",
1915
"saving_to_db": "⏳ Saving credentials to the database...",
2016
"add_acc_success": "✅ Account `'{account_name}'` was successfully added. It will be started on the next bot restart if activated.",
@@ -43,23 +39,36 @@
4339
"logs_purge_cancelled": "Log purge cancelled.",
4440
"logs_not_found": "❌ No logs matching your query were found.",
4541
"logs_caption": "📄 **Logs Report**\n\n**Mode:** `{mode}`\n**Line Limit:** `{lines}`\n**Level:** `{level}`\n**Source:** `{source}`\n\n**Entries Found:** `{found}`",
46-
"help_header_management": "**➖ Management**",
47-
"help_header_modules": "**➖ Modules**",
48-
"help_header_utils": "**➖ Utilities**",
42+
"help_header": "**DeBot | Command List**",
43+
"help_not_found": "❌ Command `{command}` not found.",
4944
"help_listaccs": "List all accounts",
45+
"help_ext_listaccs": "**Command:** `.listaccs`\n\nShows a list of all accounts in the database, their ID, name, and status (enabled/disabled).",
5046
"help_addacc": "Add a new account",
47+
"help_ext_addacc": "**Command:** `.addacc <name>`\n**Argument:** `<name>` - A unique name for the new account.\n\nStarts an interactive conversation in the current chat to add a new Telegram account.",
5148
"help_delacc": "Delete an account",
49+
"help_ext_delacc": "**Command:** `.delacc <name>`\n**Argument:** `<name>` - The name of the account to delete.\n\nPermanently deletes an account and its session from the database. Requires confirmation.",
5250
"help_toggleacc": "Enable/disable an account",
51+
"help_ext_toggleacc": "**Command:** `.toggleacc <name>`\n**Argument:** `<name>` - The name of the account.\n\nToggles the account's status between 'enabled' and 'disabled'. Changes take effect after a restart.",
5352
"help_setlang": "Set language (code or URL)",
53+
"help_ext_setlang": "**Command:** `.setlang <code|URL>`\n**Argument:** `<code|URL>` - A 2-letter language code (e.g., `en`) or a direct URL to a JSON translation file.\n\nDownloads and sets the language pack for the current account.",
5454
"help_addmod": "Add a module (reply to file)",
55+
"help_ext_addmod": "**Command:** `.addmod`\n\nAdds a new module. The command must be sent as a reply to a message with a `.py` module file.",
5556
"help_delmod": "Delete a module",
57+
"help_ext_delmod": "**Command:** `.delmod <name>`\n**Argument:** `<name>` - The name of the module to delete.",
5658
"help_trustmod": "Trust a module",
59+
"help_ext_trustmod": "**Command:** `.trustmod <name>`\n**Argument:** `<name>` - The name of the module.\n\nGrants a module full access to the client, including multi-account management. Use with caution.",
5760
"help_configmod": "Configure a module",
61+
"help_ext_configmod": "**Command:** `.configmod <module> <key> <value>`\n\nSets a value for a configuration key in the specified module.",
5862
"help_ping": "Check latency",
63+
"help_ext_ping": "**Command:** `.ping`\n\nChecks the latency from your client to the server and from the server to Telegram's API.",
5964
"help_restart": "Restart the userbot",
65+
"help_ext_restart": "**Command:** `.restart`\n\nRestarts the userbot's Docker container. All clients will be reconnected.",
6066
"help_updatemodules": "Update all modules",
67+
"help_ext_updatemodules": "**Command:** `.updatemodules`\n\n(In development) Triggers a check and update for modules from their sources.",
6168
"help_logs": "Show logs with filters",
69+
"help_ext_logs": "**Command:** `.logs [head|tail] [N] [level=L] [source=S]`\n- `head|tail` (opt.): `tail` (default) - last N logs, `head` - first N.\n- `N` (opt.): Number of lines (default 100).\n- `level=L` (opt.): Filter by level (INFO, WARNING, ERROR).\n- `source=S` (opt.): Filter by source (module name).\n**Subcommand:** `.logs purge` - completely clears all logs.",
6270
"help_logs_purge": "Purge all logs",
6371
"help_about": "About the userbot",
72+
"help_ext_about": "**Command:** `.about`\n\nShows information about the DeBot version.",
6473
"about_text": "**DeBot Userbot on SQLAlchemy**"
6574
}

userbot/locales/core/ru.json

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@
1010
"prompt_2fa": "️🔐 Этот аккаунт защищен двухфакторной аутентификацией. Пожалуйста, введите пароль (2FA):",
1111
"prompt_lang": "Выберите язык для этого аккаунта (например, `ru` или `en`):",
1212
"prompt_activate": "Активировать этот аккаунт немедленно? (да/нет):",
13-
"prompt_device": "Хотите установить кастомное устройство? Если нет, будет сгенерировано случайное. (да/нет):",
14-
"prompt_device_model": "Введите модель устройства (например, `iPhone 14 Pro Max`):",
15-
"prompt_system_version": "Введите версию системы (например, `iOS 16.5.1`):",
16-
"prompt_app_version": "Введите версию приложения (например, `10.0.1`):",
17-
"verifying_creds": "🔎 Проверяю учетные данные и наличие дубликатов...",
13+
"verifying_creds": "🔎 Проверяю учетные данные...",
1814
"err_duplicate_session": "❌ Ошибка: аккаунт с Telegram ID `{user_id}` уже существует в базе под именем `'{existing_name}'`.",
1915
"saving_to_db": "⏳ Сохраняю учетные данные в базу данных...",
2016
"add_acc_success": "✅ Аккаунт `'{account_name}'` успешно добавлен. Он будет запущен после перезагрузки бота, если был активирован.",
@@ -43,23 +39,36 @@
4339
"logs_purge_cancelled": "Очистка логов отменена.",
4440
"logs_not_found": "❌ Логи, соответствующие вашему запросу, не найдены.",
4541
"logs_caption": "📄 **Отчет по логам**\n\n**Режим:** `{mode}`\n**Лимит строк:** `{lines}`\n**Уровень:** `{level}`\n**Источник:** `{source}`\n\n**Найдено записей:** `{found}`",
46-
"help_header_management": "**➖ Управление**",
47-
"help_header_modules": "**➖ Модули**",
48-
"help_header_utils": "**➖ Утилиты**",
42+
"help_header": "**DeBot | Список команд**",
43+
"help_not_found": "❌ Команда `{command}` не найдена.",
4944
"help_listaccs": "Показать все аккаунты",
45+
"help_ext_listaccs": "**Команда:** `.listaccs`\n\nПоказывает список всех аккаунтов в базе данных, их ID, имя и статус (включен/отключен).",
5046
"help_addacc": "Добавить новый аккаунт",
47+
"help_ext_addacc": "**Команда:** `.addacc <имя>`\n**Аргумент:** `<имя>` - уникальное имя для нового аккаунта.\n\nЗапускает интерактивный диалог в текущем чате для добавления нового аккаунта Telegram.",
5148
"help_delacc": "Удалить аккаунт",
49+
"help_ext_delacc": "**Команда:** `.delacc <имя>`\n**Аргумент:** `<имя>` - имя аккаунта для удаления.\n\nБезвозвратно удаляет аккаунт и его сессию из базы данных. Требует подтверждения.",
5250
"help_toggleacc": "Включить/выключить аккаунт",
51+
"help_ext_toggleacc": "**Команда:** `.toggleacc <имя>`\n**Аргумент:** `<имя>` - имя аккаунта.\n\nПереключает статус аккаунта между 'включен' и 'выключен'. Изменения вступают в силу после перезагрузки.",
5352
"help_setlang": "Установить язык (код или URL)",
53+
"help_ext_setlang": "**Команда:** `.setlang <код|URL>`\n**Аргумент:** `<код|URL>` - двухбуквенный код языка (например, `en`) или прямая ссылка на JSON файл с переводом.\n\nСкачивает и устанавливает языковой пакет для текущего аккаунта.",
5454
"help_addmod": "Добавить модуль (ответом на файл)",
55+
"help_ext_addmod": "**Команда:** `.addmod`\n\nДобавляет новый модуль. Команда должна быть отправлена в ответ на сообщение с `.py` файлом модуля.",
5556
"help_delmod": "Удалить модуль",
57+
"help_ext_delmod": "**Команда:** `.delmod <имя>`\n**Аргумент:** `<имя>` - имя модуля для удаления.",
5658
"help_trustmod": "Сделать модуль доверенным",
59+
"help_ext_trustmod": "**Команда:** `.trustmod <имя>`\n**Аргумент:** `<имя>` - имя модуля.\n\nПредоставляет модулю полный доступ к клиенту, включая мультиаккаунтное управление. Используйте с осторожностью.",
5760
"help_configmod": "Настроить модуль",
61+
"help_ext_configmod": "**Команда:** `.configmod <модуль> <ключ> <значение>`\n\nУстанавливает значение для ключа конфигурации в указанном модуле.",
5862
"help_ping": "Проверить задержку",
63+
"help_ext_ping": "**Команда:** `.ping`\n\nПроверяет задержку от вашего клиента до сервера и от сервера до API Telegram.",
5964
"help_restart": "Перезагрузить юзербот",
65+
"help_ext_restart": "**Команда:** `.restart`\n\nПолностью перезапускает контейнер с юзерботом. Все клиенты будут переподключены.",
6066
"help_updatemodules": "Обновить все модули",
67+
"help_ext_updatemodules": "**Команда:** `.updatemodules`\n\n(В разработке) Инициирует проверку и обновление модулей из их источников.",
6168
"help_logs": "Показать логи с фильтрами",
69+
"help_ext_logs": "**Команда:** `.logs [head|tail] [N] [level=L] [source=S]`\n- `head|tail` (опц.): `tail` (по умолч.) - последние N логов, `head` - первые N.\n- `N` (опц.): Количество строк (по умолч. 100).\n- `level=L` (опц.): Фильтр по уровню (INFO, WARNING, ERROR).\n- `source=S` (опц.): Фильтр по источнику (имени модуля).\n**Подкоманда:** `.logs purge` - полностью очищает все логи.",
6270
"help_logs_purge": "Очистить все логи",
6371
"help_about": "О юзерботе",
72+
"help_ext_about": "**Команда:** `.about`\n\nПоказывает информацию о версии DeBot.",
6473
"about_text": "**DeBot Userbot на SQLAlchemy**"
6574
}

0 commit comments

Comments
 (0)