mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-02 18:20:01 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6cb4099a2e | ||
|
|
e75a4966b2 |
@@ -247,6 +247,7 @@ __Docker 最新版本由 [Sakuracio](https://github.com/Sakuracio) 提供__
|
|||||||
* 新增消息记录模块
|
* 新增消息记录模块
|
||||||
* 丰富处理请求操作提示
|
* 丰富处理请求操作提示
|
||||||
* web ui新增配置项修改
|
* web ui新增配置项修改
|
||||||
|
* 修复chat_history阻断消息
|
||||||
|
|
||||||
### 2022/4/9
|
### 2022/4/9
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,10 @@ from ._rule import rule
|
|||||||
from configs.config import Config
|
from configs.config import Config
|
||||||
from nonebot import on_message
|
from nonebot import on_message
|
||||||
|
|
||||||
|
__zx_plugin_name__ = "消息存储 [Hidden]"
|
||||||
|
__plugin_version__ = 0.1
|
||||||
|
__plugin_author__ = "HibiKier"
|
||||||
|
|
||||||
|
|
||||||
Config.add_plugin_config(
|
Config.add_plugin_config(
|
||||||
"chat_history",
|
"chat_history",
|
||||||
@@ -15,7 +19,7 @@ Config.add_plugin_config(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
chat_history = on_message(rule=rule)
|
chat_history = on_message(rule=rule, priority=1, block=False)
|
||||||
|
|
||||||
# test = on_command("aa")
|
# test = on_command("aa")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user