update events

This commit is contained in:
bridge
2025-10-21 01:06:18 +08:00
parent 00ac87eaaf
commit f7a2e377a1
22 changed files with 193 additions and 44 deletions

View File

@@ -2,6 +2,7 @@
event class
"""
from dataclasses import dataclass
from typing import List, Optional
from src.classes.calendar import Month, Year, MonthStamp
@@ -9,6 +10,8 @@ from src.classes.calendar import Month, Year, MonthStamp
class Event:
month_stamp: MonthStamp
content: str
# 相关角色ID列表若与任何角色无关则为 None
related_avatars: Optional[List[str]] = None
def __str__(self) -> str:
year = self.month_stamp.get_year()