diff --git a/pagermaid/modules/status.py b/pagermaid/modules/status.py index b7e5169..57a8040 100644 --- a/pagermaid/modules/status.py +++ b/pagermaid/modules/status.py @@ -13,11 +13,12 @@ from telethon import version as telethon_version from telethon.tl.types import User, Chat, Channel from sys import platform from re import sub, findall +from requests import get from pathlib import Path from pagermaid import log, config, redis_status, start_time, silent from pagermaid.utils import execute, upload_attachment from pagermaid.listener import listener -from pagermaid.utils import lang, alias_command, get +from pagermaid.utils import lang, alias_command DCs = { 1: "149.154.175.50", @@ -196,7 +197,7 @@ async def speedtest(context): f"Timestamp: `{result['timestamp']}`" ) # 开始处理图片 - data = (await get(f"{result['result']['url']}.png")).text + data = get(f"{result['result']['url']}.png").content with open('speedtest.png', mode='wb') as f: f.write(data) try: @@ -273,7 +274,7 @@ async def speedtest(context): f"Timestamp: `{result['timestamp']}`" ) # 开始处理图片 - data = (await get(result['share'])).text + data = get(result['share']).content with open('speedtest.png', mode='wb') as f: f.write(data) try: diff --git a/setup.py b/setup.py index dc4e784..c98e64f 100644 --- a/setup.py +++ b/setup.py @@ -13,8 +13,8 @@ formatted_today = datetime.date.today().strftime('%y%m%d') setup( name="pagermaid_modify", version=formatted_today[0:2] + "." + formatted_today[2:4] + "." + formatted_today[4:6] + ".post1", - author="xtaodada", - author_email="xtao@xtaolink.cn", + author="Xtao-Labs", + author_email="xtao@xtaolabs.com", description="A telegram utility daemon and plugin framework.", long_description=long_description, long_description_content_type="text/markdown",