Skip to content

alicebot.adapter.apscheduler.event

APScheduler 适配器事件。

class APSchedulerEvent

Bases: alicebot.event.Event[APSchedulerAdapter]

APSchedulerEvent 事件基类。

  • Attributes

    • type (Optional[str])

    • plugin_class (Type[alicebot.plugin.Plugin])

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

readonly property job

Type: apscheduler.job.Job

产生当前事件的 APScheduler Job 对象。

readonly property trigger

Type: Union[str, apscheduler.triggers.base.BaseTrigger]

当前事件对应的 Plugin 的 trigger

readonly property trigger_args {#APSchedulerEvent.trigger_args}

Type: Dict[str, Any]

当前事件对应的 Plugin 的 trigger_args

Released under the MIT License.