Update main.py

This commit is contained in:
谢幕 2025-07-18 21:14:11 +08:00 committed by GitHub
parent ef78265227
commit f995f86419
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

12
main.py
View File

@ -11,20 +11,20 @@ from astrbot.api import logger, AstrBotConfig
import astrbot.api.message_components as Comp import astrbot.api.message_components as Comp
# 订阅数据存储路径 # 订阅数据存储路径
SUBSCRIPTION_FILE = "data/github_subscriptions.json" SUBSCRIPTION_FILE = "data/astrbot_plugin_github_sub_subscriptions.json"
# 默认仓库数据存储路径 # 默认仓库数据存储路径
DEFAULT_REPO_FILE = "data/github_default_repos.json" DEFAULT_REPO_FILE = "data/astrbot_plugin_github_sub_default_repos.json"
GITHUB_API_URL = "https://api.github.com/repos/{repo}" GITHUB_API_URL = "https://api.github.com/repos/{repo}"
GITHUB_ISSUES_API_URL = "https://api.github.com/repos/{repo}/issues" GITHUB_ISSUES_API_URL = "https://api.github.com/repos/{repo}/issues"
@register( @register(
"astrbot_plugin_github_cards", "astrbot_plugin_github_sub",
"Soulter", "XieMu",
"GitHub仓库订阅插件", "GitHub仓库订阅插件",
"1.0.2", "1.0.0",
"https://github.com/Soulter/astrbot_plugin_github_cards", "https://github.com/xiemu-c/astrbot_plugin_github_sub",
) )
class MyPlugin(Star): class MyPlugin(Star):
def __init__(self, context: Context, config: AstrBotConfig = None): def __init__(self, context: Context, config: AstrBotConfig = None):