mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 00:32:06 +08:00
Compare commits
11
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3263748234 | ||
|
|
b8149c0308 | ||
|
|
75abe23896 | ||
|
|
ad7a3e6261 | ||
|
|
f1e359c666 | ||
|
|
0bfd71295e | ||
|
|
379ad77791 | ||
|
|
236bc40153 | ||
|
|
c2a54a8164 | ||
|
|
4dbab21853 | ||
|
|
3063c5bc02 |
@@ -23,7 +23,10 @@
|
||||
# [传送门](https://hibikier.github.io/zhenxun_bot/)
|
||||
|
||||
## 真寻的帮助
|
||||
请对真寻说: '真寻帮助' or '管理员帮助' or '超级用户帮助' or '真寻帮助 指令'
|
||||
请对真寻说: '真寻帮助' or '管理员帮助' or '超级用户帮助' or '真寻帮助 指令'
|
||||
<br>
|
||||
普通帮助图片: <br>
|
||||

|
||||
|
||||
## 提供符合真寻标准的插件仓库
|
||||
|
||||
@@ -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
@@ -1 +1 @@
|
||||
__version__: v0.0.8.0
|
||||
__version__: v0.0.8.1
|
||||
|
||||
@@ -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 |
@@ -1,8 +1,10 @@
|
||||
{
|
||||
"update_file": [
|
||||
"configs/utils/__init__.py",
|
||||
"plugins",
|
||||
"models",
|
||||
"services",
|
||||
"basic_plugins",
|
||||
"utils",
|
||||
"resources/ttf"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user