feat: message about loading module via .lm, finding module in repos via .dlm, and loading module in .ml

pull/60/head
Who? 2024-12-30 23:06:16 +07:00 committed by GitHub
commit 20d746dc91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 0 deletions

View File

@ -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(