mirror of https://github.com/coddrago/Heroku
feat: message about loading module via .lm, finding module in repos via .dlm, and loading module in .ml
стринги пиши сам, мне леньpull/54/head
parent
4d12ecde5b
commit
d0eaf2ddcd
|
@ -177,6 +177,10 @@ class LoaderMod(loader.Module):
|
|||
if args := utils.get_args(message):
|
||||
args = args[0]
|
||||
|
||||
await utils.answer(
|
||||
message, self.strings("finding_module_in_repos")
|
||||
)
|
||||
|
||||
if (
|
||||
await self.download_and_install(args, message, force_pm)
|
||||
== MODULE_LOADING_FORBIDDEN
|
||||
|
@ -369,6 +373,10 @@ class LoaderMod(loader.Module):
|
|||
await utils.answer(message, self.strings("provide_module"))
|
||||
return
|
||||
|
||||
await utils.answer(
|
||||
message, self.strings("loading_module_via_file")
|
||||
)
|
||||
|
||||
path_ = None
|
||||
doc = await msg.download_media(bytes)
|
||||
|
||||
|
@ -1217,6 +1225,10 @@ class LoaderMod(loader.Module):
|
|||
await utils.answer(message, self.strings("args"))
|
||||
return
|
||||
|
||||
await utils.answer(
|
||||
message, self.strings("ml_load_module")
|
||||
)
|
||||
|
||||
exact = True
|
||||
if not (
|
||||
class_name := next(
|
||||
|
|
Loading…
Reference in New Issue