Implemented event callbacks

This commit is contained in:
2026-08-18 03:14:37 +03:00
parent 8c1399d781
commit c519ae379d
2 changed files with 30 additions and 8 deletions

View File

@@ -9,12 +9,12 @@ from pathlib import Path
import config
import util
#import bot
#import logic
from new_bot import MatrixBot
from bot_types import MatrixBotConfig
import nio.events
from datatypes import AppConfig
async def main() -> None:
@@ -42,6 +42,7 @@ async def main() -> None:
storage_directory=Path(cfg.store_dir)
)
bot = MatrixBot(matrix_bot_config)
bot.add_event_callback(None, nio.events.Event)
# start the app
bot.start()