Started to implement good bot class

This commit is contained in:
Nikita Tyukalov, ASUS, Linux
2026-08-17 17:35:43 +03:00
parent 2c05443c89
commit 8c056c1da3
2 changed files with 287 additions and 0 deletions

17
bot_types.py Normal file
View File

@@ -0,0 +1,17 @@
"""Data types required for the bot"""
from pathlib import Path
from dataclasses import dataclass
@dataclass
class MatrixBotConfig:
"""Configuration for MatrixBot"""
matrix_homeserver_url: str
"""Homeserver, for example: `https://matrix.domain.su`"""
matrix_username_localpart: str
"""Localpart of matrix username (without homeserver), for example: `valid-username`"""
storage_directory: Path
"""Path to the storage directory (will be created if needed)"""