Skip to content

Commit

Permalink
fix: bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Soulter committed Mar 3, 2025
1 parent 111aa67 commit 3468daa
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
17 changes: 0 additions & 17 deletions astrbot/api/platform/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,6 @@
from astrbot.core.platform.register import register_platform_adapter
from astrbot.core.message.components import *

from astrbot.core.platform.sources.aiocqhttp.aiocqhttp_platform_adapter import AiocqhttpAdapter
from astrbot.core.platform.sources.qqofficial.qqofficial_platform_adapter import QQOfficialPlatformAdapter
from astrbot.core.platform.sources.qqofficial_webhook.qo_webhook_adapter import QQOfficialWebhookPlatformAdapter
from astrbot.core.platform.sources.gewechat.gewechat_platform_adapter import GewechatPlatformAdapter
from astrbot.core.platform.sources.telegram.tg_adapter import TelegramPlatformAdapter
from astrbot.core.platform.sources.webchat.webchat_adapter import WebChatAdapter
from astrbot.core.platform.sources.wecom.wecom_adapter import WecomPlatformAdapter
from astrbot.core.platform.sources.lark.lark_adapter import LarkPlatformAdapter

__all__ = [
"AstrMessageEvent",
"Platform",
Expand All @@ -27,12 +18,4 @@
"MessageType",
"PlatformMetadata",
"register_platform_adapter",
"AiocqhttpAdapter",
"QQOfficialPlatformAdapter",
"QQOfficialWebhookPlatformAdapter",
"GewechatPlatformAdapter",
"TelegramPlatformAdapter",
"WebChatAdapter",
"WecomPlatformAdapter",
"LarkPlatformAdapter",
]
19 changes: 19 additions & 0 deletions astrbot/core/platform/sources/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from .aiocqhttp.aiocqhttp_platform_adapter import AiocqhttpAdapter
from .qqofficial.qqofficial_platform_adapter import QQOfficialPlatformAdapter
from .qqofficial_webhook.qo_webhook_adapter import QQOfficialWebhookPlatformAdapter
from .gewechat.gewechat_platform_adapter import GewechatPlatformAdapter
from .telegram.tg_adapter import TelegramPlatformAdapter
from .webchat.webchat_adapter import WebChatAdapter
from .wecom.wecom_adapter import WecomPlatformAdapter
from .lark.lark_adapter import LarkPlatformAdapter

__all__ = [
"AiocqhttpAdapter",
"QQOfficialPlatformAdapter",
"QQOfficialWebhookPlatformAdapter",
"GewechatPlatformAdapter",
"TelegramPlatformAdapter",
"WebChatAdapter",
"WecomPlatformAdapter",
"LarkPlatformAdapter",
]

0 comments on commit 3468daa

Please sign in to comment.