Merge pull request #30 from shibaobun/docker

Continue to fix Docker
This commit is contained in:
fotoente 2022-06-18 09:57:24 +02:00 committed by GitHub
commit e7a01f646c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -16,4 +16,4 @@ RUN pip3.10 install git+https://github.com/yupix/MiPA.git
RUN pip3.10 install git+https://github.com/yupix/MiPAC.git
COPY . .
CMD [ "python3.10", "-u", "rdbot" ]
CMD [ "python3.10", "-u", "rdbot.py" ]

View file

@ -62,7 +62,7 @@ if __name__ == "__main__":
databasepath = roboduck.Path(__file__).parent.joinpath('roboduck.db')
if not (roboduck.os.path.exists(databasepath) and roboduck.os.stat(databasepath).st_size != 0):
init_bot()
roboduck.init_bot()
bot = MyBot()
asyncio.run(bot.start(url, token))