Fix little bug - Remove mkdir on Dockerfile (because now i only use MongoDB)

This commit is contained in:
Stefano Assenzo 2022-12-10 14:32:45 +00:00
parent 18719f4435
commit af9c683380
2 changed files with 1 additions and 5 deletions

View File

@ -2,10 +2,6 @@ FROM python:3.10-alpine
ENV BOT_TOKEN 0
RUN mkdir -p /app
VOLUME [ "/app/data" ]
COPY . .
RUN pip install -r requirements.txt

View File

@ -44,7 +44,7 @@ def freegame_command(message, bot=bot):
#Command /subscribe
@bot.message_handler(commands=['subscribe'])
def subscribe(message, bot=bot, collection_game=collection_game, OBJECTID_idlist=OBJECTID_idlist):
command_subscribe.subscribe_command(message, bot, collection_game)
command_subscribe.subscribe_command(message, bot, collection_game, OBJECTID_idlist)
def event_game(collection_game=collection_game, collection_id=collection_id, bot=bot, OBJECTID_idlist=OBJECTID_idlist, OBJECTID_game1=OBJECTID_game1, OBJECTID_game2=OBJECTID_game2):
check_game.a(collection_game, collection_id, bot, OBJECTID_idlist, OBJECTID_game1, OBJECTID_game2)