增加避雷功能

This commit is contained in:
qsc
2026-02-07 14:29:46 +08:00
parent 57857aa84e
commit e502ebd5d5
8 changed files with 475 additions and 12 deletions
+6 -3
View File
@@ -11,15 +11,17 @@ from astrbot.api import logger
from astrbot.api import AstrBotConfig
from .request import APIClient
from .sqlite import AsyncSQLiteDB
from .fun_basic import load_template,gold_to_string,week_to_num,compare_date_str
class JX3Service:
def __init__(self, api_config, config:AstrBotConfig):
self._api = APIClient()
# 获取API配置文件
# 引用API配置文件
self._api_config = api_config
# 获取插件配置文件
# 引用插件配置文件
self._config = config
# 获取配置中的 Token
self.token = self._config.get("jx3api_token", "")
if self.token == "":
@@ -1483,4 +1485,5 @@ class JX3Service:
return_data["code"] = 200
return return_data