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

|
||||||
|
|
||||||
## 提供符合真寻标准的插件仓库
|
## 提供符合真寻标准的插件仓库
|
||||||
|
|
||||||
@@ -235,6 +238,7 @@ python bot.py
|
|||||||
* 疫情消息回复改为图片
|
* 疫情消息回复改为图片
|
||||||
* 修复商店折扣和限时时间无法生效
|
* 修复商店折扣和限时时间无法生效
|
||||||
* 修复原神玩家查询尘歌壶缺少图片
|
* 修复原神玩家查询尘歌壶缺少图片
|
||||||
|
* 修复cd限制重复导致所有含有cd插件非超级用户无法触发
|
||||||
|
|
||||||
### 2021/12/26
|
### 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
|
# Cd
|
||||||
if plugins2cd_manager.check_plugin_cd_status(module):
|
if plugins2cd_manager.check_plugin_cd_status(module):
|
||||||
plugin_cd_data = plugins2cd_manager.get_plugin_cd_data(module)
|
plugin_cd_data = plugins2cd_manager.get_plugin_cd_data(module)
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 772 KiB |
@@ -4,6 +4,7 @@
|
|||||||
"plugins",
|
"plugins",
|
||||||
"models",
|
"models",
|
||||||
"services",
|
"services",
|
||||||
|
"basic_plugins",
|
||||||
"utils",
|
"utils",
|
||||||
"resources/ttf"
|
"resources/ttf"
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user