def stop(self):
        """
        Stops this bot.

        Returns as soon as all running threads have finished processing.
        """
        self.log.debug('Stopping bot {}'.format(self._name))
        self._stop = True
        for t in self._threads:
            t.join()

        self.log.debug('Stopping bot {} finished. All threads joined.'.format(self._name))
def stop ( self ) : self . log . debug ( 'Stopping bot {}' . format ( self . _name ) ) self . _stop = True for t in self . _threads : t . join ( ) self . log . debug ( 'Stopping bot {} finished. All threads joined.' . format ( self . _name ) )
Stops this bot.

        Returns as soon as all running threads have finished processing.