Skip to content

Commit 126e36d

Browse files
author
KafCoppelia
committed
添加alpha.16版本依赖
1 parent 0739cc8 commit 126e36d

File tree

4 files changed

+863
-9
lines changed

4 files changed

+863
-9
lines changed

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ _🍗 天天疯狂 🍗_
2020
</a>
2121

2222
<a href="">
23-
<img src="https://img.shields.io/badge/release-v0.1.5-orange">
23+
<img src="https://img.shields.io/badge/release-v0.1.6-orange">
2424
</a>
2525

2626
</p>
2727
</p>
2828

2929
## 版本
3030

31-
v0.1.5
31+
v0.1.6
3232

33-
⚠ 适配nonebot2-2.0.0alpha.16适配beta.1版本将会放在dev分支。
33+
⚠ 适配nonebot2-2.0.0alpha.16适配beta.1版本参见beta.1分支
3434

3535
## 安装
3636

37-
1. 通过`pip``nb`安装;
37+
1. 通过`pip``nb`安装,版本请指定`^0.1.6`
3838

3939
2. 读取文案的默认路径位于`./resource`下;
4040

@@ -45,6 +45,7 @@ v0.1.5
4545
## 命令
4646

4747
1. 天天疯狂,疯狂星期[一|二|三|四|五|六|日]
48+
4849
2. 输入**疯狂星期八**等不合法时间将提示;
4950

5051
## 本插件改自HoshinoBot疯狂星期四插件

nonebot_plugin_crazy_thursday/__init__.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99

1010
_CRAZY_PATH = nonebot.get_driver().config.crazy_path
1111
CRAZY_PATH = os.path.join(os.path.dirname(__file__), "resource") if not _CRAZY_PATH else _CRAZY_PATH
12-
# crazy = on_command('疯狂星期四', aliases={"星期四", "KFC", "V我50"}, permission=GROUP, priority=15, block=True)
12+
13+
# V我50
1314
crazy = on_regex(r'疯狂星期.', permission=GROUP, priority=15, block=True)
1415

1516
@crazy.handle()
16-
async def random_post(bot: Bot, event: GroupMessageEvent, state: T_State):
17+
async def _(bot: Bot, event: GroupMessageEvent, state: T_State):
1718
iscrazy = re.search(r'(.*?)星期[一|二|三|四|五|六|日]', event.get_plaintext())
1819
crazy_day = iscrazy.group(0)[-3:] if iscrazy is not None else None
1920
if crazy_day is None:

0 commit comments

Comments
 (0)