Skip to content

alicebot.adapter.mirai.event.notice

通知事件。

class NoticeEvent

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

通知事件

class NudgeEvent

Bases: alicebot.adapter.mirai.event.notice.NoticeEvent

戳一戳事件

  • Attributes

    • type (Literal['NudgeEvent'])

    • fromId (int)

    • subject (alicebot.adapter.mirai.event.base.Subject)

    • action (str)

    • suffix (str)

    • target (int)

class FriendEvent

Bases: alicebot.adapter.mirai.event.notice.NoticeEvent

好友事件

class FriendInputStatusChangedEvent

Bases: alicebot.adapter.mirai.event.notice.FriendEvent

好友输入状态改变

  • Attributes

    • type (Literal['FriendInputStatusChangedEvent'])

    • friend (alicebot.adapter.mirai.event.base.FriendInfo)

    • inputting (bool)

class FriendNickChangedEvent

Bases: alicebot.adapter.mirai.event.notice.FriendEvent

好友事件

  • Attributes

    • type (Literal['FriendNickChangedEvent'])

    • friend (alicebot.adapter.mirai.event.base.FriendInfo)

    • from (str)

    • to (str)

class FriendRecallEvent

Bases: alicebot.adapter.mirai.event.notice.FriendEvent

好友消息撤回

  • Attributes

    • type (Literal['FriendRecallEvent'])

    • authorId (int)

    • messageId (int)

    • time (int)

    • operator (int)

class GroupEvent

Bases: alicebot.adapter.mirai.event.notice.NoticeEvent

群事件

class GroupBotEvent

Bases: alicebot.adapter.mirai.event.notice.GroupEvent

与 Bot 相关的群事件

class BotGroupPermissionChangeEvent

Bases: alicebot.adapter.mirai.event.notice.GroupBotEvent

Bot 在群里的权限被改变. 操作人一定是群主

  • Attributes

    • type (Literal['BotGroupPermissionChangeEvent'])

    • origin (Literal['OWNER', 'ADMINISTRATOR', 'MEMBER'])

    • current (Literal['OWNER', 'ADMINISTRATOR', 'MEMBER'])

    • group (alicebot.adapter.mirai.event.base.GroupInfo)

class BotMuteEvent

Bases: alicebot.adapter.mirai.event.notice.GroupBotEvent

Bot 被禁言

  • Attributes

    • type (Literal['BotMuteEvent'])

    • operator (alicebot.adapter.mirai.event.base.GroupMemberInfo)

class BotUnmuteEvent

Bases: alicebot.adapter.mirai.event.notice.GroupBotEvent

Bot 被取消禁言

  • Attributes

    • type (Literal['BotUnmuteEvent'])

    • operator (alicebot.adapter.mirai.event.base.GroupMemberInfo)

class BotJoinGroupEvent

Bases: alicebot.adapter.mirai.event.notice.GroupBotEvent

Bot加入了一个新群

  • Attributes

    • type (Literal['BotJoinGroupEvent'])

    • group (alicebot.adapter.mirai.event.base.GroupInfo)

class BotLeaveEventActive

Bases: alicebot.adapter.mirai.event.notice.GroupBotEvent

Bot 主动退出一个群

  • Attributes

    • type (Literal['BotLeaveEventActive'])

    • group (alicebot.adapter.mirai.event.base.GroupInfo)

class BotLeaveEventKick

Bases: alicebot.adapter.mirai.event.notice.GroupBotEvent

Bot 被踢出一个群

  • Attributes

    • type (Literal['BotLeaveEventKick'])

    • group (alicebot.adapter.mirai.event.base.GroupInfo)

class BotLeaveEventDisband

Bases: alicebot.adapter.mirai.event.notice.GroupBotEvent

Bot 所在的群被解散

  • Attributes

    • type (Literal['BotLeaveEventDisband'])

    • group (alicebot.adapter.mirai.event.base.GroupInfo)

class GroupNoticeEvent

Bases: alicebot.adapter.mirai.event.notice.GroupEvent

其他群事件

class GroupRecallEvent

Bases: alicebot.adapter.mirai.event.notice.GroupNoticeEvent

群消息撤回

  • Attributes

    • type (Literal['GroupRecallEvent'])

    • authorId (int)

    • messageId (int)

    • time (int)

    • group (alicebot.adapter.mirai.event.base.GroupInfo)

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

class GroupNameChangeEvent

Bases: alicebot.adapter.mirai.event.notice.GroupNoticeEvent

某个群名改变

  • Attributes

    • type (Literal['GroupNameChangeEvent'])

    • origin (str)

    • current (str)

    • group (alicebot.adapter.mirai.event.base.GroupInfo)

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

class GroupEntranceAnnouncementChangeEvent

Bases: alicebot.adapter.mirai.event.notice.GroupNoticeEvent

某群入群公告改变

  • Attributes

    • type (Literal['GroupEntranceAnnouncementChangeEvent'])

    • origin (str)

    • current (str)

    • group (alicebot.adapter.mirai.event.base.GroupInfo)

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

class GroupMuteAllEvent

Bases: alicebot.adapter.mirai.event.notice.GroupNoticeEvent

全员禁言

  • Attributes

    • type (Literal['GroupMuteAllEvent'])

    • origin (bool)

    • current (bool)

    • group (alicebot.adapter.mirai.event.base.GroupInfo)

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

class GroupAllowAnonymousChatEvent

Bases: alicebot.adapter.mirai.event.notice.GroupNoticeEvent

匿名聊天

  • Attributes

    • type (Literal['GroupAllowAnonymousChatEvent'])

    • origin (bool)

    • current (bool)

    • group (alicebot.adapter.mirai.event.base.GroupInfo)

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

class GroupAllowConfessTalkEvent

Bases: alicebot.adapter.mirai.event.notice.GroupNoticeEvent

坦白说

  • Attributes

    • type (Literal['GroupAllowAnonymousChatEvent'])

    • origin (bool)

    • current (bool)

    • group (alicebot.adapter.mirai.event.base.GroupInfo)

    • isByBot (bool)

class GroupAllowMemberInviteEvent

Bases: alicebot.adapter.mirai.event.notice.GroupNoticeEvent

允许群员邀请好友加群

  • Attributes

    • type (Literal['GroupAllowMemberInviteEvent'])

    • origin (bool)

    • current (bool)

    • group (alicebot.adapter.mirai.event.base.GroupInfo)

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

class GroupMemberEvent

Bases: alicebot.adapter.mirai.event.notice.GroupEvent

群成员相关事件

  • Attributes

    • member (alicebot.adapter.mirai.event.base.GroupMemberInfo)

class MemberJoinEvent

Bases: alicebot.adapter.mirai.event.notice.GroupMemberEvent

新人入群的事件

  • Attributes

    • type (Literal['MemberJoinEvent'])

class MemberLeaveEventKick

Bases: alicebot.adapter.mirai.event.notice.GroupMemberEvent

成员被踢出群 (该成员不是Bot)

  • Attributes

    • type (Literal['MemberLeaveEventKick'])

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

class MemberLeaveEventQuit

Bases: alicebot.adapter.mirai.event.notice.GroupMemberEvent

成员主动离群 (该成员不是Bot)

  • Attributes

    • type (Literal['MemberLeaveEventQuit'])

class MemberCardChangeEvent

Bases: alicebot.adapter.mirai.event.notice.GroupMemberEvent

群名片改动

  • Attributes

    • type (Literal['MemberCardChangeEvent'])

    • origin (str)

    • current (str)

class MemberSpecialTitleChangeEvent

Bases: alicebot.adapter.mirai.event.notice.GroupMemberEvent

群头衔改动 (只有群主有操作限权)

  • Attributes

    • type (Literal['MemberSpecialTitleChangeEvent'])

    • origin (str)

    • current (str)

class MemberPermissionChangeEvent

Bases: alicebot.adapter.mirai.event.notice.GroupMemberEvent

成员权限改变的事件 (该成员不是Bot)

  • Attributes

    • type (Literal['MemberPermissionChangeEvent'])

    • origin (Literal['OWNER', 'ADMINISTRATOR', 'MEMBER'])

    • current (Literal['OWNER', 'ADMINISTRATOR', 'MEMBER'])

class MemberMuteEvent

Bases: alicebot.adapter.mirai.event.notice.GroupMemberEvent

群成员被禁言事件 (该成员不是Bot)

  • Attributes

    • type (Literal['MemberMuteEvent'])

    • durationSeconds (int)

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

class MemberUnmuteEvent

Bases: alicebot.adapter.mirai.event.notice.GroupMemberEvent

群成员被取消禁言事件 (该成员不是Bot)

  • Attributes

    • type (Literal['MemberUnmuteEvent'])

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

class MemberHonorChangeEvent

Bases: alicebot.adapter.mirai.event.notice.GroupMemberEvent

群员称号改变

  • Attributes

    • type (Literal['MemberHonorChangeEvent'])

    • action (Literal['achieve', 'lose'])

class OtherClientEvent

Bases: alicebot.adapter.mirai.event.notice.NoticeEvent

其他客户端事件

  • Attributes

    • client (alicebot.adapter.mirai.event.base.OtherClientSender)

class OtherClientOnlineEvent

Bases: alicebot.adapter.mirai.event.notice.OtherClientEvent

其他客户端上线

  • Attributes

    • type (Literal['OtherClientOnlineEvent'])

    • kind (Optional[int])

class OtherClientOfflineEvent

Bases: alicebot.adapter.mirai.event.notice.OtherClientEvent

其他客户端下线

  • Attributes

    • type (Literal['OtherClientOfflineEvent'])

Released under the MIT License.