Merge pull request #55 from FajoX1/patch-4

feat: message about loading module via .lm, finding module in repos v…
pull/56/head
Who? 2024-12-30 23:13:11 +07:00 committed by GitHub
commit b2bf435a15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 0 deletions

View File

@ -176,6 +176,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
@ -368,6 +372,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)
@ -1216,6 +1224,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(