fix
All checks were successful
Deploy Dev / Build (pull_request) Successful in 6s
Deploy Dev / Push (pull_request) Successful in 7s
Deploy Dev / Deploy dev (pull_request) Successful in 7s

This commit is contained in:
emmatveev 2024-11-30 12:42:24 +03:00
parent fb33edec7d
commit e55898663d
2 changed files with 5 additions and 1 deletions

View File

@ -5,4 +5,4 @@ COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
COPY . .
ENV PYTHONUNBUFFERED 1
ENTRYPOINT ["python", "main.py"]
ENTRYPOINT ["python", "bot.py"]

4
bot.py
View File

@ -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()