Patch regarding lavHost

pull/1/head
hikariatama 2023-01-01 20:54:31 +00:00
parent 35ec00f840
commit 028d678f5c
4 changed files with 10 additions and 63 deletions

View File

@ -784,17 +784,7 @@ class CoreMod(loader.Module):
"https://github.com/hikariatama/assets/raw/master/hikka_cat_banner.mp4", "https://github.com/hikariatama/assets/raw/master/hikka_cat_banner.mp4",
self.strings("hikka").format( self.strings("hikka").format(
( (
( utils.get_platform_emoji()
utils.get_platform_emoji()
+ (
"<emoji document_id=5192756799647785066>✌️</emoji><emoji"
" document_id=5193117564015747203>✌️</emoji><emoji"
" document_id=5195050806105087456>✌️</emoji><emoji"
" document_id=5195457642587233944>✌️</emoji>"
if "LAVHOST" in os.environ
else ""
)
)
if self._client.hikka_me.premium and CUSTOM_EMOJIS if self._client.hikka_me.premium and CUSTOM_EMOJIS
else "🌘 <b>Hikka userbot</b>" else "🌘 <b>Hikka userbot</b>"
), ),

View File

@ -70,10 +70,6 @@ class UpdaterMod(loader.Module):
), ),
"no_update": "🚸 <b>You are on the latest version, pull updates anyway?</b>", "no_update": "🚸 <b>You are on the latest version, pull updates anyway?</b>",
"cancel": "🚫 Cancel", "cancel": "🚫 Cancel",
"lavhost_restart": (
"<emoji document_id=5469986291380657759>✌️</emoji> <b>Your {} is"
" restarting...</b>"
),
"lavhost_update": ( "lavhost_update": (
"<emoji document_id=5469986291380657759>✌️</emoji> <b>Your {} is" "<emoji document_id=5469986291380657759>✌️</emoji> <b>Your {} is"
" updating...</b>" " updating...</b>"
@ -128,17 +124,13 @@ class UpdaterMod(loader.Module):
), ),
"update_confirm": ( "update_confirm": (
"❓ <b>Ты уверен, что" "❓ <b>Ты уверен, что"
" хочешь обновиться??\n\n<a" " хочешь обновиться?\n\n<a"
' href="https://github.com/hikariatama/Hikka/commit/{}">{}</a> ⤑ <a' ' href="https://github.com/hikariatama/Hikka/commit/{}">{}</a> ⤑ <a'
' href="https://github.com/hikariatama/Hikka/commit/{}">{}</a></b>' ' href="https://github.com/hikariatama/Hikka/commit/{}">{}</a></b>'
), ),
"no_update": "🚸 <b>У тебя последняя версия. Обновиться принудительно?</b>", "no_update": "🚸 <b>У тебя последняя версия. Обновиться принудительно?</b>",
"cancel": "🚫 Отмена", "cancel": "🚫 Отмена",
"_cls_doc": "Обновляет юзербот", "_cls_doc": "Обновляет юзербот",
"lavhost_restart": (
"<emoji document_id=5469986291380657759>✌️</emoji> <b>Твой {}"
" перезагружается...</b>"
),
"lavhost_update": ( "lavhost_update": (
"<emoji document_id=5469986291380657759>✌️</emoji> <b>Твой {}" "<emoji document_id=5469986291380657759>✌️</emoji> <b>Твой {}"
" обновляется...</b>" " обновляется...</b>"
@ -185,17 +177,13 @@ class UpdaterMod(loader.Module):
), ),
"update_confirm": ( "update_confirm": (
"❓ <b>Sei sicuro di" "❓ <b>Sei sicuro di"
" voler aggiornare??\n\n<a" " voler aggiornare?\n\n<a"
' href="https://github.com/hikariatama/Hikka/commit/{}">{}</a> ⤑ <a' ' href="https://github.com/hikariatama/Hikka/commit/{}">{}</a> ⤑ <a'
' href="https://github.com/hikariatama/Hikka/commit/{}">{}</a></b>' ' href="https://github.com/hikariatama/Hikka/commit/{}">{}</a></b>'
), ),
"no_update": "🚸 <b>Sei già aggiornato. Forzare l'aggiornamento?</b>", "no_update": "🚸 <b>Sei già aggiornato. Forzare l'aggiornamento?</b>",
"cancel": "🚫 Annulla", "cancel": "🚫 Annulla",
"_cls_doc": "Aggiorna il tuo userbot", "_cls_doc": "Aggiorna il tuo userbot",
"lavhost_restart": (
"<emoji document_id=5469986291380657759>✌️</emoji> <b>Il tuo {}"
" sta per essere riavviato...</b>"
),
"lavhost_update": ( "lavhost_update": (
"<emoji document_id=5469986291380657759>✌️</emoji> <b>Il tuo {}" "<emoji document_id=5469986291380657759>✌️</emoji> <b>Il tuo {}"
" sta per essere aggiornato...</b>" " sta per essere aggiornato...</b>"
@ -242,7 +230,7 @@ class UpdaterMod(loader.Module):
), ),
"update_confirm": ( "update_confirm": (
"❓ <b>Bist du sicher, dass" "❓ <b>Bist du sicher, dass"
" du updaten willst??\n\n<a" " du updaten willst?\n\n<a"
' href="https://github.com/hikariatama/Hikka/commit/{}">{}</a> ⤑ <a' ' href="https://github.com/hikariatama/Hikka/commit/{}">{}</a> ⤑ <a'
' href="https://github.com/hikariatama/Hikka/commit/{}">{}</a></b>' ' href="https://github.com/hikariatama/Hikka/commit/{}">{}</a></b>'
), ),
@ -251,10 +239,6 @@ class UpdaterMod(loader.Module):
), ),
"cancel": "🚫 Abbrechen", "cancel": "🚫 Abbrechen",
"_cls_doc": "Aktualisiert den Userbot", "_cls_doc": "Aktualisiert den Userbot",
"lavhost_restart": (
"<emoji document_id=5469986291380657759>✌️</emoji> <b>Dein {}"
" wird neugestartet...</b>"
),
"lavhost_update": ( "lavhost_update": (
"<emoji document_id=5469986291380657759>✌️</emoji> <b>Dein {}" "<emoji document_id=5469986291380657759>✌️</emoji> <b>Dein {}"
" wird aktualisiert...</b>" " wird aktualisiert...</b>"
@ -310,10 +294,6 @@ class UpdaterMod(loader.Module):
"no_update": "🚸 <b>Zaten son sürümünüz. Güncelleme yapmak ister misiniz?</b>", "no_update": "🚸 <b>Zaten son sürümünüz. Güncelleme yapmak ister misiniz?</b>",
"cancel": "🚫 İptal", "cancel": "🚫 İptal",
"_cls_doc": "Kullanıcı botunu günceller", "_cls_doc": "Kullanıcı botunu günceller",
"lavhost_restart": (
"<emoji document_id=5469986291380657759>✌️</emoji> <b>{}"
" yeniden başlatılıyor...</b>"
),
"lavhost_update": ( "lavhost_update": (
"<emoji document_id=5469986291380657759>✌️</emoji> <b>{}" "<emoji document_id=5469986291380657759>✌️</emoji> <b>{}"
" güncelleniyor...</b>" " güncelleniyor...</b>"
@ -360,7 +340,7 @@ class UpdaterMod(loader.Module):
"❓ <b>Haqiqatan ham xavfsiz rejimda qayta ishga tushirmoqchimisiz?</b>" "❓ <b>Haqiqatan ham xavfsiz rejimda qayta ishga tushirmoqchimisiz?</b>"
), ),
"update_confirm": ( "update_confirm": (
"❓ <b>Haqiqatan ham yangilamoqchimisiz??\n\n<a" "❓ <b>Haqiqatan ham yangilamoqchimisiz?\n\n<a"
' href="https://github.com/hikariatama/Hikka/commit/{}">{}</a> ⤑ <a' ' href="https://github.com/hikariatama/Hikka/commit/{}">{}</a> ⤑ <a'
' href="https://github.com/hikariatama/Hikka/commit/{}">{}</a></b>' ' href="https://github.com/hikariatama/Hikka/commit/{}">{}</a></b>'
), ),
@ -369,10 +349,6 @@ class UpdaterMod(loader.Module):
), ),
"cancel": "🚫 Bekor qilish", "cancel": "🚫 Bekor qilish",
"_cls_doc": "Foydalanuvchi botini yangilaydi", "_cls_doc": "Foydalanuvchi botini yangilaydi",
"lavhost_restart": (
"<emoji document_id=5469986291380657759>✌️</emoji> <b>{}"
" qayta ishga tushirilmoqda...</b>"
),
"lavhost_update": ( "lavhost_update": (
"<emoji document_id=5469986291380657759>✌️</emoji> <b>{}" "<emoji document_id=5469986291380657759>✌️</emoji> <b>{}"
" yangilanmoqda...</b>" " yangilanmoqda...</b>"
@ -421,9 +397,6 @@ class UpdaterMod(loader.Module):
"no_update": "🚸 <b>Esta es la última versión. ¿Quieres actualizar?</b>", "no_update": "🚸 <b>Esta es la última versión. ¿Quieres actualizar?</b>",
"cancel": "🚫 Cancelar", "cancel": "🚫 Cancelar",
"_cls_doc": "El usuario reinicia el bot", "_cls_doc": "El usuario reinicia el bot",
"lavhost_restart": (
"<emoji document_id=5328274090262275771>✌️</emoji> <b>{} Reiniciando...</b>"
),
"lavhost_update": ( "lavhost_update": (
"<emoji document_id=5328274090262275771>✌️</emoji> <b>{}" "<emoji document_id=5328274090262275771>✌️</emoji> <b>{}"
" Actualizando...</b>" " Actualizando...</b>"
@ -468,7 +441,7 @@ class UpdaterMod(loader.Module):
"❓ <b>Сен бұл бетті безпеке режимінде жаңартуға сенімдісін бе?</b>" "❓ <b>Сен бұл бетті безпеке режимінде жаңартуға сенімдісін бе?</b>"
), ),
"update_confirm": ( "update_confirm": (
"❓ <b>Сен жаңартуға сенімдісін бе??\n\n<a" "❓ <b>Сен жаңартуға сенімдісін бе?\n\n<a"
' href="https://github.com/hikariatama/Hikka/commit/{}">{}</a> ⤑ <a' ' href="https://github.com/hikariatama/Hikka/commit/{}">{}</a> ⤑ <a'
' href="https://github.com/hikariatama/Hikka/commit/{}">{}</a></b>' ' href="https://github.com/hikariatama/Hikka/commit/{}">{}</a></b>'
), ),
@ -477,10 +450,6 @@ class UpdaterMod(loader.Module):
), ),
"cancel": "🚫 Бас тарту", "cancel": "🚫 Бас тарту",
"_cls_doc": "Юзерботты жаңарту", "_cls_doc": "Юзерботты жаңарту",
"lavhost_restart": (
"<emoji document_id=5469986291380657759>✌️</emoji> <b>Сіздің {}"
" жаңартуға басталды...</b>"
),
"lavhost_update": ( "lavhost_update": (
"<emoji document_id=5469986291380657759>✌️</emoji> <b>Сіздің {}" "<emoji document_id=5469986291380657759>✌️</emoji> <b>Сіздің {}"
" жаңартуға басталды...</b>" " жаңартуға басталды...</b>"
@ -529,10 +498,6 @@ class UpdaterMod(loader.Module):
"no_update": "🚸 <b>Сезнең соңгы версиягез бар. Яңарту мәҗбүриме?</b>", "no_update": "🚸 <b>Сезнең соңгы версиягез бар. Яңарту мәҗбүриме?</b>",
"cancel": "🚫 Бетерү", "cancel": "🚫 Бетерү",
"_cls_doc": "Юзерботны яңарта", "_cls_doc": "Юзерботны яңарта",
"lavhost_restart": (
"<emoji document_id=5328274090262275771>✌️</emoji> <b>Сезнең {} яңадан"
" башлана...</b>"
),
"lavhost_update": ( "lavhost_update": (
"<emoji document_id=5328274090262275771>✌️</emoji> <b>Сезнең {}" "<emoji document_id=5328274090262275771>✌️</emoji> <b>Сезнең {}"
" яңартыла...</b>" " яңартыла...</b>"
@ -624,17 +589,6 @@ class UpdaterMod(loader.Module):
and CUSTOM_EMOJIS and CUSTOM_EMOJIS
and isinstance(msg_obj, Message) and isinstance(msg_obj, Message)
else "Hikka" else "Hikka"
)
if "LAVHOST" not in os.environ
else self.strings("lavhost_restart").format(
'</b><emoji document_id="5192756799647785066">✌️</emoji><emoji'
' document_id="5193117564015747203">✌️</emoji><emoji'
' document_id="5195050806105087456">✌️</emoji><emoji'
' document_id="5195457642587233944">✌️</emoji><b>'
if self._client.hikka_me.premium
and CUSTOM_EMOJIS
and isinstance(msg_obj, Message)
else "lavHost"
), ),
) )

View File

@ -935,6 +935,9 @@ def get_platform_emoji() -> str:
) )
) )
if "LAVHOST" in os.environ:
return BASE.format(5301078610747074753)
if "MIYAHOST" in os.environ: if "MIYAHOST" in os.environ:
return BASE.format(5280938237785808014) return BASE.format(5280938237785808014)

View File

@ -68,7 +68,7 @@
</div> </div>
</div> </div>
</div><br> </div><br>
<div class="description">Incomprehensibly <span style="color:#c54245">perfect</span> userbot<br><span <div class="description">Incomprehensibly <span style="color:#c54245">the best</span> userbot<br><span
style="color: #18cc18; display: none" class="authorized">Authorized!</span></div> style="color: #18cc18; display: none" class="authorized">Authorized!</span></div>
<div class="center"> <div class="center">
{% if not tg_done %} {% if not tg_done %}