- update to Mi.py v3.9.91

- attempt to fix websocket 100% CPU bug
main
shibao 2 years ago
parent 47362ed437
commit 5dc89bc71e

@ -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 . .

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

Loading…
Cancel
Save