mirror of https://github.com/coddrago/Heroku
fix info and fix info strings
parent
72c688c363
commit
79dbca4e99
|
@ -408,7 +408,7 @@ heroku_info:
|
|||
_ihandle_doc_info: "Sende Informationen zum Userbot"
|
||||
up-to-date: "<emoji document_id=5370699111492229743>😌</emoji> <b>Aktuelle Version</b>"
|
||||
update_required: "<emoji document_id=5424728541650494040>😕</emoji> <b>Update erforderlich</b> <code>{prefix}update</code>"
|
||||
_cfg_cst_msg: "Benutzerdefinierter Nachrichtentext in info. Kann Schlüsselwörter {me}, {version}, {build}, {prefix}, {platform}, {upd}, {uptime}, {cpu_usage}, {ram_usage}, {branch} enthalten"
|
||||
_cfg_cst_msg: "Benutzerdefinierter Nachrichtentext in info. Kann Schlüsselwörter {me}, {version}, {build}, {prefix}, {platform}, {upd}, {uptime}, {cpu_usage}, {ram_usage}, {branch}, {hostname}, {user}, {os}, {kernel}, {cpu}, {ping} enthalten"
|
||||
_cfg_cst_btn: "Benutzerdefinierte Schaltfläche in der Nachricht in info. Lasse es leer, um die Schaltfläche zu entfernen"
|
||||
_cfg_banner: "Link zum Banner-Bild"
|
||||
setinfo_no_args: "<emoji document_id=5370881342659631698>😢</emoji> <b>Du musst den Text für benutzerdefiniertes Info angeben</b>"
|
||||
|
|
|
@ -431,7 +431,7 @@ heroku_info:
|
|||
update_required: "<emoji document_id=5424728541650494040>😕</emoji> <b>Update required</b> <code>{prefix}update</code>"
|
||||
setinfo_no_args: "<emoji document_id=5370881342659631698>😢</emoji> <b>You need to specify text to change info to</b>"
|
||||
setinfo_success: "<emoji document_id=5436040291507247633>🎉</emoji> <b>Info changed successfully</b>"
|
||||
_cfg_cst_msg: "Custom message for info. May contain {me}, {version}, {build}, {prefix}, {platform}, {upd}, {uptime}, {cpu_usage}, {ram_usage}, {branch} keywords"
|
||||
_cfg_cst_msg: "Custom message for info. May contain {me}, {version}, {build}, {prefix}, {platform}, {upd}, {uptime}, {cpu_usage}, {ram_usage}, {branch}, {hostname}, {user}, {os}, {kernel}, {cpu}, {ping} keywords"
|
||||
_cfg_cst_btn: "Custom button for info. Leave empty to remove button"
|
||||
_cfg_banner: "URL to image banner"
|
||||
desc: "<emoji document_id=5188377234380954537>🪐</emoji> <b>Userbot — what is it?</b>\n\n<emoji document_id=5472238129849048175>😎</emoji> A userbot refers to a <b>third-party program</b> that interacts with the Telegram API to perform <b>automated tasks on behalf of a user</b>. These userbots can be used to automate various tasks such as <b>sending messages, joining channels, downloading media, and much more</b>.\n\n<emoji document_id=5474667187258006816>😎</emoji> Userbots are different from regular Telegram bots as <b>they run on the user's account</b> rather than a bot account. This means that userbots can access more features and have greater flexibility in terms of the actions they can perform.\n\n<emoji document_id=5472267631979405211>🚫</emoji> However, it is important to note that <b>userbots are not officially supported by Telegram</b> and their use may violate the platform's terms of service. As such, <b>users should exercise caution when using userbots</b> and ensure that they are not being used for malicious purposes.\n\n"
|
||||
|
|
|
@ -401,7 +401,7 @@ heroku_info:
|
|||
_ihandle_doc_info: "Отправить информацию о юзерботе"
|
||||
up-to-date: "<emoji document_id=5370699111492229743>😌</emoji> <b>Актуальная версия</b>"
|
||||
update_required: "<emoji document_id=5424728541650494040>😕</emoji> <b>Требуется обновление</b> <code>{prefix}update</code>"
|
||||
_cfg_cst_msg: "Кастомный текст сообщения в info. Может содержать ключевые слова {me}, {version}, {build}, {prefix}, {platform}, {upd}, {uptime}, {cpu_usage}, {ram_usage}, {branch}"
|
||||
_cfg_cst_msg: "Кастомный текст сообщения в info. Может содержать ключевые слова {me}, {version}, {build}, {prefix}, {platform}, {upd}, {uptime}, {cpu_usage}, {ram_usage}, {branch}, {hostname}, {user}, {os}, {kernel}, {cpu}, {ping}"
|
||||
_cfg_cst_btn: "Кастомная кнопка в сообщении в info. Оставь пустым, чтобы убрать кнопку"
|
||||
_cfg_banner: "Ссылка на баннер-картинку"
|
||||
setinfo_no_args: "<emoji document_id=5370881342659631698>😢</emoji> <b>Тебе нужно указать текст для кастомного инфо</b>"
|
||||
|
|
|
@ -409,7 +409,7 @@ heroku_info:
|
|||
_ihandle_doc_info: "Надіслати інформацію про юзербота"
|
||||
up-to-date: "<emoji document_id=5370699111492229743>😌</emoji> <b>Актуальна версія</b>"
|
||||
update_required: "<emoji document_id=5424728541650494040>😕</emoji> <b>Потрібне оновлення</b> <code>{prefix}update</code>"
|
||||
_cfg_cst_msg: "Кастомний текст повідомлення в info. Може містити ключові слова {me}, {version}, {build}, {prefix}, {platform}, {upd}, {uptime}, {cpu_usage}, {ram_usage}, {branch}"
|
||||
_cfg_cst_msg: "Кастомний текст повідомлення в info. Може містити ключові слова {me}, {version}, {build}, {prefix}, {platform}, {upd}, {uptime}, {cpu_usage}, {ram_usage}, {branch}, {hostname}, {user}, {os}, {kernel}, {cpu}, {ping}"
|
||||
_cfg_cst_btn: "Кастомна кнопка в повідомленні в info. Залиш порожнім, щоб прибрати кнопку"
|
||||
_cfg_banner: "Посилання на банер-картинку"
|
||||
setinfo_no_args: "<emoji document_id=5370881342659631698>😢</emoji> <b>Тобі потрібно вказати текст для кастомного інфо</b>"
|
||||
|
|
|
@ -160,15 +160,21 @@ class HerokuInfoMod(loader.Module):
|
|||
@loader.command()
|
||||
async def infocmd(self, message: Message):
|
||||
start = time.perf_counter_ns()
|
||||
if '{ping}' in self.config["custom_message"]:
|
||||
if self.config["custom_message"] is None:
|
||||
await utils.answer_file(
|
||||
message,
|
||||
self.config["banner_url"],
|
||||
self._render_info(False, start),
|
||||
reply_to=getattr(message, "reply_to_msg_id", None),
|
||||
)
|
||||
elif '{ping}' in self.config["custom_message"]:
|
||||
message = await utils.answer(message, self.config["ping_emoji"])
|
||||
|
||||
await utils.answer_file(
|
||||
message,
|
||||
self.config["banner_url"],
|
||||
self._render_info(False, start),
|
||||
reply_to=getattr(message, "reply_to_msg_id", None),
|
||||
)
|
||||
await utils.answer_file(
|
||||
message,
|
||||
self.config["banner_url"],
|
||||
self._render_info(False, start),
|
||||
reply_to=getattr(message, "reply_to_msg_id", None),
|
||||
)
|
||||
|
||||
@loader.command()
|
||||
async def herokuinfo(self, message: Message):
|
||||
|
|
Loading…
Reference in New Issue