Implemented event callbacks
This commit is contained in:
5
main.py
5
main.py
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user