def __init__(self, reddit: praw.Reddit,
                 subreddits: Iterable = None,
                 name: str = "AbstractBot",
                 n_jobs=4):
        """
        Default constructor

        :param reddit: Reddit instance
        :param subreddits: List of subreddits
        :param n_jobs: Number of jobs for parallelization
        """

        if subreddits is None:
            subreddits = []  # type: List[str]

        if n_jobs < 1:
            raise Exception('You need at least one worker thread.')

        self._subs = subreddits
        self._name = name
        self._reddit = reddit
        self._n_jobs = n_jobs
        self._stop = False
        self._threads = []  # type: List[BotThread]
        self.log = logging.getLogger(__name__)
        super().__init__()
def __init__ ( self , reddit : praw . Reddit , subreddits : Iterable = None , name : str = "AbstractBot" , n_jobs = 4 ) : if subreddits is None : subreddits = [ ] if n_jobs < 1 : raise Exception ( 'You need at least one worker thread.' ) self . _subs = subreddits self . _name = name self . _reddit = reddit self . _n_jobs = n_jobs self . _stop = False self . _threads = [ ] self . log = logging . getLogger ( __name__ ) super ( ) . __init__ ( )
Default constructor

        :param reddit: Reddit instance
        :param subreddits: List of subreddits
        :param n_jobs: Number of jobs for parallelization