mirror of https://github.com/coddrago/Heroku
Update loader.py
parent
643839cbd4
commit
1376077df6
|
@ -6,6 +6,12 @@
|
||||||
# You can redistribute it and/or modify it under the terms of the GNU AGPLv3
|
# You can redistribute it and/or modify it under the terms of the GNU AGPLv3
|
||||||
# 🔑 https://www.gnu.org/licenses/agpl-3.0.html
|
# 🔑 https://www.gnu.org/licenses/agpl-3.0.html
|
||||||
|
|
||||||
|
# ©️ Codrago, 2024-2025
|
||||||
|
# This file is a part of Heroku Userbot
|
||||||
|
# 🌐 https://github.com/coddrago/Heroku
|
||||||
|
# You can redistribute it and/or modify it under the terms of the GNU AGPLv3
|
||||||
|
# 🔑 https://www.gnu.org/licenses/agpl-3.0.html
|
||||||
|
|
||||||
import ast
|
import ast
|
||||||
import asyncio
|
import asyncio
|
||||||
import contextlib
|
import contextlib
|
||||||
|
@ -505,8 +511,8 @@ class LoaderMod(loader.Module):
|
||||||
await utils.answer(message, self.strings("inline_init_failed"))
|
await utils.answer(message, self.strings("inline_init_failed"))
|
||||||
return
|
return
|
||||||
|
|
||||||
if re.search(r"# ?scope: ?hikka_min", doc):
|
if re.search(r"# ?scope: ?heroku_min", doc):
|
||||||
ver = re.search(r"# ?scope: ?hikka_min ((?:\d+\.){2}\d+)", doc).group(1)
|
ver = re.search(r"# ?scope: ?heroku_min ((?:\d+\.){2}\d+)", doc).group(1)
|
||||||
ver_ = tuple(map(int, ver.split(".")))
|
ver_ = tuple(map(int, ver.split(".")))
|
||||||
if main.__version__ < ver_:
|
if main.__version__ < ver_:
|
||||||
if isinstance(message, Message):
|
if isinstance(message, Message):
|
||||||
|
|
Loading…
Reference in New Issue