Skip to content

alicebot.adapter.mirai.event.meta

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

class MetaEvent

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

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

method __init__(__pydantic_self__, **data) {#BaseModel.__init__}

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

__init__ uses __pydantic_self__ instead of the more common self for the first arg to allow self as a field name.

  • Arguments

    • data (Any)
  • Returns

    Type: None

class BotEvent

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

Bot 自身事件

  • Attributes

    • qq (int)

method __init__(__pydantic_self__, **data) {#BaseModel.__init__}

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

__init__ uses __pydantic_self__ instead of the more common self for the first arg to allow self as a field name.

  • Arguments

    • data (Any)
  • Returns

    Type: None

class BotOnlineEvent

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

Bot 登录成功

  • Attributes

    • type (Literal['BotOnlineEvent'])

method __init__(__pydantic_self__, **data) {#BaseModel.__init__}

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

__init__ uses __pydantic_self__ instead of the more common self for the first arg to allow self as a field name.

  • Arguments

    • data (Any)
  • Returns

    Type: None

class BotOfflineEventActive

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

Bot 主动离线

  • Attributes

    • type (Literal['BotOfflineEventActive'])

method __init__(__pydantic_self__, **data) {#BaseModel.__init__}

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

__init__ uses __pydantic_self__ instead of the more common self for the first arg to allow self as a field name.

  • Arguments

    • data (Any)
  • Returns

    Type: None

class BotOfflineEventForce

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

Bot 被挤下线

  • Attributes

    • type (Literal['BotOfflineEventForce'])

method __init__(__pydantic_self__, **data) {#BaseModel.__init__}

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

__init__ uses __pydantic_self__ instead of the more common self for the first arg to allow self as a field name.

  • Arguments

    • data (Any)
  • Returns

    Type: None

class BotOfflineEventDropped

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

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

  • Attributes

    • type (Literal['BotOfflineEventDropped'])

method __init__(__pydantic_self__, **data) {#BaseModel.__init__}

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

__init__ uses __pydantic_self__ instead of the more common self for the first arg to allow self as a field name.

  • Arguments

    • data (Any)
  • Returns

    Type: None

class BotReloginEvent

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

Bot 主动重新登录

  • Attributes

    • type (Literal['BotReloginEvent'])

method __init__(__pydantic_self__, **data) {#BaseModel.__init__}

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

__init__ uses __pydantic_self__ instead of the more common self for the first arg to allow self as a field name.

  • Arguments

    • data (Any)
  • Returns

    Type: None

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[Any])

method __init__(__pydantic_self__, **data) {#BaseModel.__init__}

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

__init__ uses __pydantic_self__ instead of the more common self for the first arg to allow self as a field name.

  • Arguments

    • data (Any)
  • Returns

    Type: None

Released under the MIT License.