- update to Mi.py v3.9.91

- attempt to fix websocket 100% CPU bug
This commit is contained in:
shibao 2022-03-26 12:50:22 -04:00
parent 47362ed437
commit 5dc89bc71e
2 changed files with 3 additions and 1 deletions

View file

@ -12,7 +12,7 @@ WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install git+https://github.com/yupix/Mi.py.git@v3.9.9
RUN pip install git+https://github.com/yupix/Mi.py.git@v3.9.91
COPY . .

View file

@ -46,6 +46,8 @@ class MyBot(commands.Bot):
await note.reply(content=text) # Reply to a note
async def on_reconnect(self, ws):
await Router(ws).connect_channel(["global", "main"]) # Connect to global and main channels
if __name__ == "__main__":
databasepath = Path(__file__).parent.joinpath('roboduck.db')