mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 16:21:28 +00:00
🎨 change event log
This commit is contained in:
@ -155,7 +155,7 @@ class Event(abc.ABC, BaseModel):
|
||||
def get_event_description(self) -> str:
|
||||
raise NotImplementedError
|
||||
|
||||
def get_log_string(self) -> str:
|
||||
def __str__(self) -> str:
|
||||
return f"[{self.get_event_name()}]: {self.get_event_description()}"
|
||||
|
||||
@abc.abstractmethod
|
||||
|
Reference in New Issue
Block a user