From e55898663d2bb16b937411f683185613daf1bc5d Mon Sep 17 00:00:00 2001 From: emmatveev Date: Sat, 30 Nov 2024 12:42:24 +0300 Subject: [PATCH] fix --- Dockerfile | 2 +- bot.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3c5568e..1ee715e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,4 +5,4 @@ COPY requirements.txt requirements.txt RUN pip install -r requirements.txt COPY . . ENV PYTHONUNBUFFERED 1 -ENTRYPOINT ["python", "main.py"] \ No newline at end of file +ENTRYPOINT ["python", "bot.py"] \ No newline at end of file diff --git a/bot.py b/bot.py index 992f4df..dea4505 100644 --- a/bot.py +++ b/bot.py @@ -120,3 +120,7 @@ class Core(TasksHandlerMixin): self.send_message('🤖 Собеседник найден! Можешь начинать общаться', next_chat['chat_id']) mongo.create_dialog(chat, next_chat['chat_id']) self.set_state('dialog', [chat, next_chat['chat_id']]) + + +if __name__ == '__main__': + Core().poll()