diff options
author | Kyomotoi <[email protected]> | 2020-09-06 16:26:28 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2020-09-06 16:26:28 +0800 |
commit | a36b6ecc37491b5cbf8c8750d252fbd53dc301ca (patch) | |
tree | 330f6d3a8b85781462b3fc7a912cba68fcccdc35 /ATRI/plugins/richBISS.py | |
parent | 0c7bc774e1af9e28c124d5b1a5bab7040e33dbc7 (diff) | |
download | ATRI-a36b6ecc37491b5cbf8c8750d252fbd53dc301ca.tar.gz ATRI-a36b6ecc37491b5cbf8c8750d252fbd53dc301ca.tar.bz2 ATRI-a36b6ecc37491b5cbf8c8750d252fbd53dc301ca.zip |
[Update]
Diffstat (limited to 'ATRI/plugins/richBISS.py')
-rw-r--r-- | ATRI/plugins/richBISS.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ATRI/plugins/richBISS.py b/ATRI/plugins/richBISS.py index f60d7d0..88d4277 100644 --- a/ATRI/plugins/richBISS.py +++ b/ATRI/plugins/richBISS.py @@ -1,11 +1,10 @@ import re import json import nonebot -from pathlib import Path from datetime import datetime -from ATRI.modules import response # type: ignore -from ATRI.modules.funcControl import checkNoob # type: ignore +from ATRI.modules.response import request_api +from ATRI.modules.funcControl import checkNoob bot = nonebot.get_bot() @@ -70,7 +69,7 @@ async def Fuck_bili_rich(context): URL = f'https://api.imjad.cn/bilibili/v2/?aid={aid}' try: - res = response.request_api(URL) + res = request_api(URL) mg = json.loads(res) msg = BILI_REPORT_FORMAT.format( title = mg["data"]["title"], @@ -120,7 +119,7 @@ async def Fuck_CloudMusic(context): print(URL) try: - res = response.request_api(URL) + res = request_api(URL) mg = json.loads(res) msg = REPORT_FORMAT.format( |