在请求中使用异步代替同步防止进程阻塞,优化部分代码样式

This commit is contained in:
2024-08-15 18:22:24 +08:00
parent b5525ce662
commit fc5931bf33
6 changed files with 161 additions and 82 deletions

View File

@ -5,16 +5,16 @@ description = "Nonebot2插件从哔哩哔哩会员购获取简易展览数据
readme = "README.md"
requires-python = "<4.0,>=3.9"
authors = [
{name = "Asankilp", email = "asankilp@outlook.com"},
{ name = "Asankilp", email = "asankilp@outlook.com" },
]
dependencies = [
"nonebot2>=2.2.0",
"nonebot2[fastapi, websockets]>=2.2.0",
"nonebot-plugin-alconna>=0.48.0",
"nonebot-plugin-htmlrender>=0.3.2",
"jinja2>=3.1.4",
"requests>=2.32.3"
"aiohttp>=4.0.0a1",
]
license = {text = "MIT"}
license = { text = "MIT" }
[project.urls]
Homepage = "https://github.com/LiteyukiStudio/nonebot-plugin-acgnshow"
@ -23,7 +23,8 @@ Homepage = "https://github.com/LiteyukiStudio/nonebot-plugin-acgnshow"
[tool.nonebot]
plugins = ["nonebot_plugin_acgnshow"]
adapters = [
{ name = "OneBot V11", module_name = "nonebot.adapters.onebot.v11" }
{ name = "OneBot V11", module_name = "nonebot.adapters.onebot.v11" },
]