File structure refactor

This commit is contained in:
T-BENZIN 2025-08-15 11:09:40 +05:00
parent ff70196756
commit 131999816b
2 changed files with 10 additions and 1 deletions

View File

@ -2,6 +2,7 @@ from abc import ABC, abstractmethod
class MessageFactory(ABC): class MessageFactory(ABC):
@staticmethod
@abstractmethod @abstractmethod
def new(self, raw_message) -> object: def new(raw_message) -> object:
pass pass

View File

@ -0,0 +1,8 @@
from _common import MessageFactory
from openai_data_models import Message
class DiscordMessageFactory(MessageFactory):
@staticmethod
def new(raw_message) -> Message:
Message()