code: def _connect(self):
          
          self.conn = self._create_connection()
          spawn(self.conn.connect)
          self.set_nick(self.nick)
          self.cmd(u'USER', u'{0} 3 * {1}'.format(self.nick, self.realname))
docs: Connects the bot to the server and identifies itself.