Merge pull request #19 from shibaobun/reconnect

Reconnect Websocket
main
fotoente 2 years ago committed by GitHub
commit b80965ee2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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