Module graia.application.entry

这个模块用于为开发者提供一站式的导入体验.

Expand source code
"""这个模块用于为开发者提供一站式的导入体验."""

from . import GraiaMiraiApplication
from .logger import AbstractLogger, LoggingLogger
from .event.dispatcher import MessageChainCatcher
from .event.lifecycle import ApplicationLaunched, ApplicationShutdowned
from .event.messages import FriendMessage, GroupMessage, TempMessage
from .event.mirai import (
    BotOnlineEvent,
    BotOfflineEventActive,
    BotOfflineEventForce,
    BotOfflineEventDropped,
    BotReloginEvent,
    BotGroupPermissionChangeEvent,
    BotMuteEvent,
    BotUnmuteEvent,
    BotJoinGroupEvent,
    GroupRecallEvent,
    FriendRecallEvent,
    GroupNameChangeEvent,
    GroupEntranceAnnouncementChangeEvent,
    GroupMuteAllEvent,
    GroupAllowAnonymousChatEvent,
    GroupAllowConfessTalkEvent,
    GroupAllowMemberInviteEvent,
    MemberJoinEvent,
    MemberLeaveEventKick,
    MemberLeaveEventQuit,
    MemberCardChangeEvent,
    MemberSpecialTitleChangeEvent,
    MemberPermissionChangeEvent,
    MemberMuteEvent,
    MemberUnmuteEvent,
    NewFriendRequestEvent,
    MemberJoinRequestEvent,
    BotInvitedJoinGroupRequestEvent,
)
from .message.elements.internal import (
    Plain,
    Source,
    Quote,
    At,
    AtAll,
    Face,
    Image,
    FlashImage,
    Xml,
    Json,
    App,
    Poke,
    PokeMethods,
)
from .message.chain import MessageChain
from .friend import Friend
from .group import MemberPerm, Group, Member, MemberInfo, GroupConfig
from .session import Session
from .exceptions import (
    InvalidEventTypeDefinition,
    InvaildAuthkey,
    AccountNotFound,
    InvaildSession,
    UnauthorizedSession,
    UnknownTarget,
    AccountMuted,
    TooLongMessage,
    InvaildArgument,
    NotSupportedVersion,
    DeprecatedImpl,
    EntangledSuperposition,
    MissingNecessaryOne,
)