2021-02-01 00:01:31 +08:00
|
|
|
from .base import Event
|
|
|
|
|
|
|
|
|
|
|
|
class MetaEvent(Event):
|
|
|
|
"""元事件基类"""
|
2021-11-22 23:21:26 +08:00
|
|
|
|
2021-02-01 00:01:31 +08:00
|
|
|
qq: int
|
|
|
|
|
|
|
|
|
|
|
|
class BotOnlineEvent(MetaEvent):
|
|
|
|
"""Bot登录成功"""
|
2021-11-22 23:21:26 +08:00
|
|
|
|
2021-02-01 00:01:31 +08:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class BotOfflineEventActive(MetaEvent):
|
|
|
|
"""Bot主动离线"""
|
2021-11-22 23:21:26 +08:00
|
|
|
|
2021-02-01 00:01:31 +08:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class BotOfflineEventForce(MetaEvent):
|
|
|
|
"""Bot被挤下线"""
|
2021-11-22 23:21:26 +08:00
|
|
|
|
2021-02-01 00:01:31 +08:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class BotOfflineEventDropped(MetaEvent):
|
|
|
|
"""Bot被服务器断开或因网络问题而掉线"""
|
2021-11-22 23:21:26 +08:00
|
|
|
|
2021-02-01 00:01:31 +08:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class BotReloginEvent(MetaEvent):
|
|
|
|
"""Bot主动重新登录"""
|
2021-11-22 23:21:26 +08:00
|
|
|
|
|
|
|
pass
|