Skip to content

Commit

Permalink
Merge pull request #33 from MinatoAquaCrews/dev-v0.4.x
Browse files Browse the repository at this point in the history
fix bugs: v0.4.8
  • Loading branch information
KafCoppelia authored Jul 24, 2022
2 parents c0abaee + 9cebf78 commit 045985e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ _🙏 今日运势 🙏_
<img src="https://img.shields.io/badge/nonebot2-2.0.0b3+-green">
</a>

<a href="https://github.com/MinatoAquaCrews/nonebot_plugin_fortune/releases/tag/v0.4.7">
<a href="https://github.com/MinatoAquaCrews/nonebot_plugin_fortune/releases/tag/v0.4.8">
<img src="https://img.shields.io/github/v/release/MinatoAquaCrews/nonebot_plugin_fortune?color=orange">

</a>
Expand All @@ -31,13 +31,13 @@ _🙏 今日运势 🙏_

## 版本

v0.4.7 运势文案!全新的!
v0.4.8 运势文案!全新的!

👉 [如何在v0.4.2或更早版本上更新抽签主题资源?](https://github.com/MinatoAquaCrews/nonebot_plugin_fortune/blob/beta/How-to-add-new-theme.md)

⚠ 适配nonebot2-2.0.0b3+

[更新日志](https://github.com/MinatoAquaCrews/nonebot_plugin_fortune/releases/tag/v0.4.7)
[更新日志](https://github.com/MinatoAquaCrews/nonebot_plugin_fortune/releases/tag/v0.4.8)

## 安装

Expand Down
4 changes: 2 additions & 2 deletions nonebot_plugin_fortune/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .config import MainThemeList
from nonebot_plugin_apscheduler import scheduler

__fortune_version__ = "v0.4.7"
__fortune_version__ = "v0.4.8"
__fortune_notes__ = f'''
今日运势 {__fortune_version__}
[今日运势/抽签/运势] 抽签
Expand All @@ -26,7 +26,7 @@
reset = on_regex("^重置(抽签)?主题$", permission=SUPERUSER | GROUP_ADMIN | GROUP_OWNER, priority=8, block=True)
theme_list = on_fullmatch("主题列表", permission=GROUP, priority=8, block=True)
show = on_regex("^查看(抽签)?主题$", permission=GROUP, priority=8, block=True)
refresh = on_fullmatch("刷新抽签", permission=SUPERUSER, priority=8, block=True)
refresh = on_fullmatch("刷新抽签", permission=SUPERUSER, priority=7, block=True)

@show.handle()
async def _(event: GroupMessageEvent):
Expand Down
2 changes: 1 addition & 1 deletion nonebot_plugin_fortune/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def randomBasemap(_theme: str, _spec_path: Optional[str]) -> Path:
if _theme == "random":
__p: Path = fortune_config.fortune_path / "img"
# Each dir is a theme, remember add _flag after the names of themes
themes: List[str] = [f.name for f in __p.iterdir() if f.is_dir() and theme_flag_check(f.name + "_flag")]
themes: List[str] = [f.name for f in __p.iterdir() if f.is_dir() and theme_flag_check(f.name)]
picked = random.choice(themes)

_p: Path = __p / picked
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_fortune"
version = "0.4.7"
version = "0.4.8"
description = "Fortune divination!"
authors = ["KafCoppelia <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 045985e

Please sign in to comment.