code: def _loop(self, map):
          
          try:
              from asyncore import poll
          except ImportError:
              raise Exception("Couldn't find poll function. Cannot start bot.")
      
          while map:
              self.before_poll()
              poll(timeout=30.0, map=map)
              self.after_poll()
docs: The main loop. Poll sockets for I/O and run any other functions
          that need to be run every loop.