Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
5fdc6b8
1
Parent(s):
cf6e83d
Looks good
Browse files- Powers/plugins/utils.py +4 -12
Powers/plugins/utils.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import re
|
2 |
-
import aiofiles
|
3 |
import asyncio
|
|
|
4 |
from Powers import *
|
5 |
from os import remove
|
6 |
from io import BytesIO
|
@@ -18,7 +18,6 @@ from Powers.utils.parser import mention_html
|
|
18 |
# from search_engine_parser import GoogleSearch
|
19 |
from Powers.utils.custom_filters import command
|
20 |
from Powers.utils.extract_user import extract_user
|
21 |
-
from Powers.utils.http_helper import get
|
22 |
from pyrogram.errors import PeerIdInvalid, MessageTooLong
|
23 |
from Powers.utils.clean_file import remove_markdown_and_html
|
24 |
from wikipedia.exceptions import PageError, DisambiguationError
|
@@ -84,6 +83,7 @@ async def gdpr_remove(_, m: Message):
|
|
84 |
)
|
85 |
await m.stop_propagation()
|
86 |
|
|
|
87 |
'''
|
88 |
@Gojo.on_message(
|
89 |
command("lyrics") & (filters.group | filters.private),
|
@@ -169,6 +169,7 @@ async def id_info(c: Gojo, m: Message):
|
|
169 |
return
|
170 |
'''
|
171 |
|
|
|
172 |
@Gojo.on_message(
|
173 |
command("gifid") & (filters.group | filters.private),
|
174 |
)
|
@@ -204,7 +205,6 @@ async def github(_, m: Message):
|
|
204 |
return await message.reply_text("request timeout")
|
205 |
except Exception as e:
|
206 |
return await message.reply_text(f"ERROR: `{e}`")
|
207 |
-
|
208 |
|
209 |
url = r.get("html_url", None)
|
210 |
name = r.get("name", None)
|
@@ -340,15 +340,7 @@ async def tr(_, message):
|
|
340 |
|
341 |
|
342 |
__PLUGIN__ = "utils"
|
343 |
-
_DISABLE_CMDS_ = [
|
344 |
-
"paste",
|
345 |
-
"wiki",
|
346 |
-
"id",
|
347 |
-
"gifid",
|
348 |
-
"tr",
|
349 |
-
"github",
|
350 |
-
"git"
|
351 |
-
]
|
352 |
__alt_name__ = ["util", "misc", "tools"]
|
353 |
|
354 |
__HELP__ = """
|
|
|
1 |
import re
|
|
|
2 |
import asyncio
|
3 |
+
import aiofiles
|
4 |
from Powers import *
|
5 |
from os import remove
|
6 |
from io import BytesIO
|
|
|
18 |
# from search_engine_parser import GoogleSearch
|
19 |
from Powers.utils.custom_filters import command
|
20 |
from Powers.utils.extract_user import extract_user
|
|
|
21 |
from pyrogram.errors import PeerIdInvalid, MessageTooLong
|
22 |
from Powers.utils.clean_file import remove_markdown_and_html
|
23 |
from wikipedia.exceptions import PageError, DisambiguationError
|
|
|
83 |
)
|
84 |
await m.stop_propagation()
|
85 |
|
86 |
+
|
87 |
'''
|
88 |
@Gojo.on_message(
|
89 |
command("lyrics") & (filters.group | filters.private),
|
|
|
169 |
return
|
170 |
'''
|
171 |
|
172 |
+
|
173 |
@Gojo.on_message(
|
174 |
command("gifid") & (filters.group | filters.private),
|
175 |
)
|
|
|
205 |
return await message.reply_text("request timeout")
|
206 |
except Exception as e:
|
207 |
return await message.reply_text(f"ERROR: `{e}`")
|
|
|
208 |
|
209 |
url = r.get("html_url", None)
|
210 |
name = r.get("name", None)
|
|
|
340 |
|
341 |
|
342 |
__PLUGIN__ = "utils"
|
343 |
+
_DISABLE_CMDS_ = ["paste", "wiki", "id", "gifid", "tr", "github", "git"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
344 |
__alt_name__ = ["util", "misc", "tools"]
|
345 |
|
346 |
__HELP__ = """
|