Skip to content

How often and how many times does commands.Bot attempt to connect to a channel? #400

Discussion options

You must be logged in to vote

I have several people testing a fix for this.
This only occurs after Twitch sends a forced RECONNECT.

In websocket.py in the _connect method
Change the code to to this (It's simply adding self._reconnect_requested = False

        await self.authenticate(self._initial_channels)

        self._keeper = asyncio.create_task(self._keep_alive())  # Create our keep alive.
        self._reconnect_requested = False
        if not self._task_cleaner or self._task_cleaner.done():
            self._task_cleaner = asyncio.create_task(self._task_cleanup())  # Create our task cleaner.

        self._ws_ready_event.set()

Once confirmed everything is stable for everyone over a time period and a RECONNECT …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@anakimluke
Comment options

@1987Krang1987
Comment options

@anakimluke
Comment options

@chillymosh
Comment options

Answer selected by anakimluke
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants