LiteyukiBot-TriM/liteyuki/comm/event.py

16 lines
278 B
Python
Raw Permalink Normal View History

2024-08-12 11:44:30 +08:00
# -*- coding: utf-8 -*-
"""
2024-10-06 02:39:10 +08:00
本模块用于轻雪主进程和子进程之间的通信的事件类
2024-08-12 11:44:30 +08:00
"""
from typing import Any
class Event:
"""
事件类
"""
def __init__(self, name: str, data: dict[str, Any]):
self.name = name
self.data = data