Compare commits

...
Author SHA1 Message Date
HibiKier 3263748234 Update README.md 2022-01-06 00:32:57 +08:00
HibiKier b8149c0308 Update auth_hook.py 2022-01-06 00:32:19 +08:00
HibiKier 75abe23896 Update __version__ 2022-01-05 23:43:19 +08:00
HibiKier ad7a3e6261 Update update_info.json 2022-01-05 23:43:05 +08:00
HibiKier f1e359c666 Update README.md 2022-01-05 23:18:12 +08:00
HibiKier 0bfd71295e Delete x 2022-01-05 23:15:54 +08:00
HibiKier 379ad77791 Add files via upload 2022-01-05 23:15:41 +08:00
HibiKier 236bc40153 Create x 2022-01-05 23:14:05 +08:00
HibiKier c2a54a8164 Update update_info.json 2022-01-05 23:07:03 +08:00
HibiKier 4dbab21853 Update README.md 2022-01-05 22:57:29 +08:00
HibiKier 3063c5bc02 Update README.md 2022-01-05 22:57:08 +08:00
5 changed files with 10 additions and 31 deletions
+7 -2
View File
@@ -23,7 +23,10 @@
# [传送门](https://hibikier.github.io/zhenxun_bot/)
## 真寻的帮助
请对真寻说: '真寻帮助' or '管理员帮助' or '超级用户帮助' or '真寻帮助 指令'
请对真寻说: '真寻帮助' or '管理员帮助' or '超级用户帮助' or '真寻帮助 指令'
<br>
普通帮助图片: <br>
![x](https://raw.githubusercontent.com/HibiKier/zhenxun_bot/main/docs_image/3238573864-836268675-E2FFBB2AC143EAF4DDDF150438508721.png)
## 提供符合真寻标准的插件仓库
@@ -38,6 +41,7 @@
* 通过Config配置项将所有插件配置统计保存至config.yaml,利于统一用户修改
* 方便增删插件,原生nonebot2 matcher,不需要额外修改,仅仅通过简单的配置属性就可以生成`帮助图片`和`帮助信息`
* 提供了cd,阻塞,每日次数等限制,仅仅通过简单的属性就可以生成一个限制,例如:`__plugin_cd_limit__`
* 基本完善的权限管理
* __..... 更多详细请通过`传送门`查看文档!__
@@ -221,7 +225,7 @@ python bot.py
## 更新
### 2021/1/5 \[v0.0.7.2]
### 2021/1/5 \[v0.0.8.0]
* 提供金币消费hook,可在plugins2settings.yaml中配置该功能需要消费的金币
* 商店插件将作为内置插件移动至basic_plugins
@@ -234,6 +238,7 @@ python bot.py
* 疫情消息回复改为图片
* 修复商店折扣和限时时间无法生效
* 修复原神玩家查询尘歌壶缺少图片
* 修复cd限制重复导致所有含有cd插件非超级用户无法触发
### 2021/12/26
+1 -1
View File
@@ -1 +1 @@
__version__: v0.0.8.0
__version__: v0.0.8.1
-28
View File
@@ -260,34 +260,6 @@ async def _(matcher: Matcher, bot: Bot, event: MessageEvent, state: T_State):
# 以下为限制检测 #######################################################
# 以下为限制检测 #######################################################
# 以下为限制检测 #######################################################
# Cd
if plugins2cd_manager.check_plugin_cd_status(module):
plugin_cd_data = plugins2cd_manager.get_plugin_cd_data(module)
check_type = plugin_cd_data["check_type"]
limit_type = plugin_cd_data["limit_type"]
rst = plugin_cd_data["rst"]
if (
(isinstance(event, PrivateMessageEvent) and check_type == "private")
or (isinstance(event, GroupMessageEvent) and check_type == "group")
or plugins2cd_manager.get_plugin_data(module).get("check_type") == "all"
):
cd_type_ = event.user_id
if limit_type == "group" and isinstance(event, GroupMessageEvent):
cd_type_ = event.group_id
if not plugins2cd_manager.check(module, cd_type_):
if rst:
rst = await init_rst(rst, event)
await send_msg(rst, bot, event)
raise IgnoredException(f"{module} 正在cd中...")
else:
plugins2cd_manager.start_cd(module, cd_type_)
module = matcher.module
if (
isinstance(event, GroupMessageEvent)
and status_message_manager.get(event.group_id) is None
):
status_message_manager.delete(event.group_id)
# Cd
if plugins2cd_manager.check_plugin_cd_status(module):
plugin_cd_data = plugins2cd_manager.get_plugin_cd_data(module)
Binary file not shown.

After

Width:  |  Height:  |  Size: 772 KiB

+2
View File
@@ -1,8 +1,10 @@
{
"update_file": [
"configs/utils/__init__.py",
"plugins",
"models",
"services",
"basic_plugins",
"utils",
"resources/ttf"
],