mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
添加插件数据初始化判断
This commit is contained in:
parent
a36e8145a8
commit
6a8a796add
@ -279,6 +279,10 @@ PS: **ARM平台** 请使用全量版 同时 **如果你的机器 RAM < 1G 可能
|
|||||||
|
|
||||||
## 更新
|
## 更新
|
||||||
|
|
||||||
|
### 2022/9/8
|
||||||
|
|
||||||
|
* 添加插件数据初始化判断
|
||||||
|
|
||||||
### 2022/9/4
|
### 2022/9/4
|
||||||
|
|
||||||
* 旧词条提供图片迁移(需要重新获取old_model文件,并将数据库中user_qq为0的数据删除)
|
* 旧词条提供图片迁移(需要重新获取old_model文件,并将数据库中user_qq为0的数据删除)
|
||||||
|
|||||||
@ -27,6 +27,8 @@ def init_plugins_config(data_path):
|
|||||||
# 优先使用 metadata 数据
|
# 优先使用 metadata 数据
|
||||||
for matcher in _matchers:
|
for matcher in _matchers:
|
||||||
_plugin = matcher.plugin
|
_plugin = matcher.plugin
|
||||||
|
if not _plugin:
|
||||||
|
continue
|
||||||
metadata = _plugin.metadata
|
metadata = _plugin.metadata
|
||||||
try:
|
try:
|
||||||
_module = _plugin.module
|
_module = _plugin.module
|
||||||
|
|||||||
@ -25,6 +25,8 @@ def init_plugins_data(data_path):
|
|||||||
_matchers = get_matchers(True)
|
_matchers = get_matchers(True)
|
||||||
for matcher in _matchers:
|
for matcher in _matchers:
|
||||||
_plugin = matcher.plugin
|
_plugin = matcher.plugin
|
||||||
|
if not _plugin:
|
||||||
|
continue
|
||||||
metadata = _plugin.metadata
|
metadata = _plugin.metadata
|
||||||
try:
|
try:
|
||||||
_module = _plugin.module
|
_module = _plugin.module
|
||||||
|
|||||||
@ -36,6 +36,8 @@ def init_plugins_settings(data_path: str):
|
|||||||
for matcher in _matchers:
|
for matcher in _matchers:
|
||||||
if matcher.plugin_name not in plugins2settings_manager.keys():
|
if matcher.plugin_name not in plugins2settings_manager.keys():
|
||||||
_plugin = matcher.plugin
|
_plugin = matcher.plugin
|
||||||
|
if not _plugin:
|
||||||
|
continue
|
||||||
metadata = _plugin.metadata
|
metadata = _plugin.metadata
|
||||||
try:
|
try:
|
||||||
_module = _plugin.module
|
_module = _plugin.module
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user