mirror of
https://github.com/fotoente/MIsskey-ebooks-bot
synced 2024-11-12 22:57:08 +00:00
- update to Mi.py v3.9.91
- attempt to fix websocket 100% CPU bug
This commit is contained in:
parent
47362ed437
commit
5dc89bc71e
2 changed files with 3 additions and 1 deletions
|
@ -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 . .
|
||||
|
||||
|
|
2
rdbot.py
2
rdbot.py
|
@ -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…
Reference in a new issue