From dc5bc229526d6c1346e722538da072af4f767d3c Mon Sep 17 00:00:00 2001 From: Rilliat Date: Mon, 18 Nov 2024 21:06:38 +0300 Subject: [PATCH] Set actual prefix instead of . in installation command --- hikka/langpacks/en.yml | 3 ++- hikka/langpacks/ru.yml | 2 +- hikka/langpacks/ua.yml | 2 +- hikka/modules/settings.py | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/hikka/langpacks/en.yml b/hikka/langpacks/en.yml index aa1fc5c..4b2ced0 100644 --- a/hikka/langpacks/en.yml +++ b/hikka/langpacks/en.yml @@ -241,7 +241,7 @@ settings: 🤲 However, if you want to migrate from hikariatama Hikka, run the following command: -
.terminal git pull https://github.com/coddrago/Hikka master
+
{}terminal git pull https://github.com/coddrago/Hikka master
I also recommend resetting all built-in module configurations to their default values to avoid any unforeseen errors!' too_many_args: "🚫 Too many args" blacklisted: "👍 Chat {} blacklisted from userbot" @@ -275,6 +275,7 @@ I also recommend resetting all built-in module configurations to their default v _cmd_doc_setprefix: " - Sets command prefix" _cmd_doc_unblacklist: " - Unblacklist the bot from operating somewhere" _cmd_doc_unblacklistuser: "[user_id] - Allow this user to run permitted commands" + _cfg_nonstandart_prefixes: "Allow non-standart prefixes like flags or more than one symbol" _cls_doc: "Control core userbot settings" hikka_config: diff --git a/hikka/langpacks/ru.yml b/hikka/langpacks/ru.yml index 3095366..3c2cee4 100644 --- a/hikka/langpacks/ru.yml +++ b/hikka/langpacks/ru.yml @@ -229,7 +229,7 @@ settings: 🤲 Однако если вы хотите переместиться с хикки от hikariatama, то вам нужно выполнить данную команду: -
.terminal git pull https://github.com/coddrago/Hikka master
+
{}terminal git pull https://github.com/coddrago/Hikka master
И советую сразу же сбросить весь конфиг встроенных модулей до значения по умолчанию, потому что иначе может привести к непредвиденным ошибкам!' too_many_args: "🚫 Слишком много аргументов" blacklisted: "👍 Чат {} добавлен в черный список юзербота" diff --git a/hikka/langpacks/ua.yml b/hikka/langpacks/ua.yml index be764d8..463c4e2 100644 --- a/hikka/langpacks/ua.yml +++ b/hikka/langpacks/ua.yml @@ -229,7 +229,7 @@ settings: 🤲 Якщо ви хочете перейти з Хікки від hikariatama, виконайте цю команду: -
.terminal git pull https://github.com/coddrago/Hikka master
+
{}terminal git pull https://github.com/coddrago/Hikka master
І рекомендую одразу скинути всі налаштування вбудованих модулів до значень за замовчуванням, щоб уникнути непередбачених помилок!' too_many_args: "🚫 " blacklisted: "👍 Чат {} додано до чорного списку юзербота" diff --git a/hikka/modules/settings.py b/hikka/modules/settings.py index 13304a7..e4aa936 100644 --- a/hikka/modules/settings.py +++ b/hikka/modules/settings.py @@ -253,6 +253,6 @@ class CoreMod(loader.Module): await self.client.send_file( message.peer_id, "https://imgur.com/a/AYmh8W8.png", - caption=self.strings["installation"], reply_to=getattr(message, "reply_to_msg_id", None),) + caption=self.strings["installation"].format(self.get_prefix()), reply_to=getattr(message, "reply_to_msg_id", None),) await message.delete()