Add initial common/core listen events

This commit is contained in:
Mads Marquart
2020-01-16 15:54:35 +01:00
parent dbc88bc4ed
commit e735823d37
4 changed files with 114 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ from . import (
_group,
_thread,
_message,
_event_common,
)
from ._thread import ThreadLocation
@@ -1194,6 +1195,10 @@ class Client:
EVENTS
"""
def on_event(self, event: _event_common.Event):
"""Called when the client is listening, and an event happens."""
log.info("Got event: %s", event)
def on_message(
self,
mid=None,