summaryrefslogtreecommitdiff
path: root/ATRI/plugins/saucenao
diff options
context:
space:
mode:
Diffstat (limited to 'ATRI/plugins/saucenao')
-rw-r--r--ATRI/plugins/saucenao/__init__.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/ATRI/plugins/saucenao/__init__.py b/ATRI/plugins/saucenao/__init__.py
index 9b502bd..bf9e06b 100644
--- a/ATRI/plugins/saucenao/__init__.py
+++ b/ATRI/plugins/saucenao/__init__.py
@@ -20,9 +20,7 @@ async def _deal_search(event: MessageEvent):
# cache fix
if not sn.key:
- data = ServiceTools.load_service("以图搜图")
- data["enabled"] = False
- ServiceTools.save_service(data, "以图搜图")
+ ServiceTools.service_controller("以图搜图", False)
log.warning("插件 SauceNao 所需的 key 未配置,将被全局禁用,后续填写请手动启用")
user_id = event.get_user_id()