def __init__(self, bot: Patbot): self.bot = bot self.config = Config.get_config(cog_instance=self) self._register_defaults() self._d20 = '<:d20:734505366821404693>' self.banned_names = ('adv', 'a', 'dis', 'disadv', 'd', 'stats') self.cache = Cache() self._gathered = dict()
def __init__(self, bot: Patbot): self.bot = bot self.config = Config.get_config(cog_instance=self) self._register_defaults() self._quotes_history = None self._images = {} self._search = None if not hasattr(bot, '_current_petition'): self.bot._current_petition = None self._current_listener = None elif self.bot._current_petition is not None: self._current_listener = self._get_vote_listener( self.bot._current_petition['channel']) self.bot.add_listener(self._current_listener, 'on_message') else: self._current_listener = None self.bot.loop.create_task(self._init_petition())
def __init__(self, bot: Patbot): self.bot = bot self.config = Config.get_config(cog_instance=self) self._register_defaults() self._last_result = None self._sessions = set()
def __init__(self, bot: Patbot): self.bot = bot self.config = Config.get_config(cog_instance=self) self._register_defaults()