Compare commits
2 commits
7a07d04074
...
d8029623c1
Author | SHA1 | Date | |
---|---|---|---|
def | d8029623c1 | ||
def | d2b11ecc11 |
|
@ -6,4 +6,5 @@ RUN apt-get install --yes python3 python3-pip
|
|||
COPY requirements.txt /app/
|
||||
RUN pip3 install -r requirements.txt
|
||||
COPY mirrortea/* /app/mirrortea/
|
||||
COPY config.yaml /app/
|
||||
ENTRYPOINT ["/usr/bin/python3", "/app/mirrortea"]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import asyncio
|
||||
|
||||
from matrix import MatrixLoop
|
||||
from mirrortea.abstract_source_platform.telegram import Telegram
|
||||
from abstract_source_platform.telegram import Telegram
|
||||
|
||||
from config_dataclass import Config
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
from mirrortea.abstract_source_platform.telegram import Telegram
|
||||
from abstract_source_platform.telegram import Telegram
|
||||
|
||||
platforms = [Telegram]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from abc import ABC, abstractmethod
|
||||
|
||||
from mirrortea.models.user import User
|
||||
from models.user import User
|
||||
|
||||
|
||||
class AbstractSourcePlatform(ABC):
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import sys
|
||||
import aiogram as telegram
|
||||
|
||||
from mirrortea.abstract_source_platform.abstact_source_platform import (
|
||||
from abstract_source_platform.abstact_source_platform import (
|
||||
AbstractSourcePlatform,
|
||||
)
|
||||
from mirrortea.models.user import User
|
||||
from models.user import User
|
||||
|
||||
|
||||
class Telegram(AbstractSourcePlatform):
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from mirrortea.repository.sqlite_repository import (
|
||||
from repository.sqlite_repository import (
|
||||
SQLiteDatabaseRepository,
|
||||
)
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@ import sqlite3
|
|||
from pathlib import Path
|
||||
from typing import Optional
|
||||
|
||||
from mirrortea.repository.abstract_db_repository import AbstractDatabaseRepository
|
||||
from repository.abstract_db_repository import AbstractDatabaseRepository
|
||||
|
||||
from mirrortea.repository.sqlite_init_tables import (
|
||||
from repository.sqlite_init_tables import (
|
||||
TELEGRAM_USER_MATRIX_CHATS_SQL,
|
||||
TELEGRAM_USERS_SQL,
|
||||
MATRIX_ROOMS_SQL,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
aiogram==2.24
|
||||
matrix-nio==0.20.1
|
||||
jinja2
|
||||
jinja2==3.1.2
|
||||
pydantic==1.10.2
|
||||
pyyaml==6.0
|
Reference in a new issue