def listener(self, sock, *args):
conn, addr = sock.accept()<EOL>f = conn.makefile(conn)<EOL>self.shell = ShoebotCmd(self.bot, stdin=f, stdout=f, intro=INTRO)<EOL>print(_("<STR_LIT>"))<EOL>GObject.io_add_watch(conn, GObject.IO_IN, self.handler)<EOL>if self.shell.intro:<EOL><INDENT>self.shell.stdout.write(str(self.shell.intro)+"<STR_LIT:\n>")<EOL>self.shell.stdout.flush()<EOL><DEDENT>return True<EOL>
Asynchronous connection listener. Starts a handler for each connection.