Skip to content

alicebot.adapter.mirai.event.meta

默认不会被传播的特殊事件。

class MetaEvent

Bases: alicebot.adapter.mirai.event.base.MiraiEvent

默认不会被传播的特殊事件

class BotEvent

Bases: alicebot.adapter.mirai.event.meta.MetaEvent

Bot 自身事件

  • Attributes

    • qq (int)

class BotOnlineEvent

Bases: alicebot.adapter.mirai.event.meta.BotEvent

Bot 登录成功

  • Attributes

    • type (Literal['BotOnlineEvent'])

class BotOfflineEventActive

Bases: alicebot.adapter.mirai.event.meta.BotEvent

Bot 主动离线

  • Attributes

    • type (Literal['BotOfflineEventActive'])

class BotOfflineEventForce

Bases: alicebot.adapter.mirai.event.meta.BotEvent

Bot 被挤下线

  • Attributes

    • type (Literal['BotOfflineEventForce'])

class BotOfflineEventDropped

Bases: alicebot.adapter.mirai.event.meta.BotEvent

Bot 被服务器断开或因网络问题而掉线

  • Attributes

    • type (Literal['BotOfflineEventDropped'])

class BotReloginEvent

Bases: alicebot.adapter.mirai.event.meta.BotEvent

Bot 主动重新登录

  • Attributes

    • type (Literal['BotReloginEvent'])

class CommandExecutedEvent

Bases: alicebot.adapter.mirai.event.meta.MetaEvent

命令被执行

  • Attributes

    • type (Literal['CommandExecutedEvent'])

    • name (str)

    • friend (Optional[alicebot.adapter.mirai.event.base.FriendInfo])

    • member (Optional[alicebot.adapter.mirai.event.base.GroupMemberInfo])

    • args (list[typing.Any])

Released under the MIT License.