summaryrefslogtreecommitdiff
path: root/ATRI/plugins/manage/data_source.py
diff options
context:
space:
mode:
Diffstat (limited to 'ATRI/plugins/manage/data_source.py')
-rw-r--r--ATRI/plugins/manage/data_source.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ATRI/plugins/manage/data_source.py b/ATRI/plugins/manage/data_source.py
index 37edefc..12d3177 100644
--- a/ATRI/plugins/manage/data_source.py
+++ b/ATRI/plugins/manage/data_source.py
@@ -142,8 +142,7 @@ class BotManager:
return result
raise Exception("该功能只能在群聊中使用")
- def toggle_user_service(self, service: str, event: MessageEvent) -> bool:
- user_id = event.get_user_id()
+ def toggle_user_service(self, service: str, user_id: str) -> bool:
serv = ServiceTools(service)
try:
data = serv.load_service()