code: def _on_open(self, _):
          
          nick = self._format_nick(self._nick, self._pwd)
          data = {"cmd": "join", "channel": self._channel, "nick": nick}
          self._send_packet(data)
          self._thread = True
          threading.Thread(target=self._ping).start()
docs: Joins the hack.chat channel and starts pinging.