Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lgc2333 committed Mar 29, 2023
1 parent 6a412fc commit e86b000
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion nonebot_plugin_bawiki/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from .__main__ import * # noqa: E402, F403

__version__ = "0.7.3"
__version__ = "0.7.3.post1"
__plugin_meta__ = PluginMetadata(
name="BAWiki",
description="碧蓝档案Wiki插件",
Expand Down
2 changes: 1 addition & 1 deletion nonebot_plugin_bawiki/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ async def _(matcher: Matcher, cmd_arg: Message = CommandArg()):
return await matcher.finish("未找到该学生")

stu_name = data["PathName"]
await matcher.send(f"请稍等,正在截取SchaleDB页面~\n" f"{config.schale_url}?chara={stu_name}")
await matcher.send(f"请稍等,正在截取SchaleDB页面~\n{config.ba_schale_url}?chara={stu_name}")

try:
img = MessageSegment.image(await schale_get_stu_info(stu_name))
Expand Down
8 changes: 4 additions & 4 deletions nonebot_plugin_bawiki/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class Cfg(BaseModel):
ba_schale_mirror_url = "https://schale.lgc.cyberczy.xyz/"
ba_bawiki_db_url = "https://bawiki.lgc.cyberczy.xyz/"

@validator("gamekee_url", allow_reuse=True, check_fields=False)
@validator("schale_url", allow_reuse=True, check_fields=False)
@validator("schale_mirror_url", allow_reuse=True, check_fields=False)
@validator("bawiki_db_url", allow_reuse=True, check_fields=False)
@validator("ba_gamekee_url", allow_reuse=True)
@validator("ba_schale_url", allow_reuse=True)
@validator("ba_schale_mirror_url", allow_reuse=True)
@validator("ba_bawiki_db_url", allow_reuse=True)
def _(cls, val: str):
if not (
(val.startswith("https://") or val.startswith("http://"))
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nonebot-plugin-bawiki"
version = "0.7.3"
version = "0.7.3.post1"
description = "A nonebot2 plugin for Blue Archive."
authors = ["student_2333 <lgc2333@126.com>"]
license = "MIT"
Expand Down

0 comments on commit e86b000

Please sign in to comment.