コード例 #1
0
ファイル: tba.py プロジェクト: cemal-efe-g/Dozer
 def __init__(self, bot):
     super().__init__(bot)
     tba_config = bot.config['tba']
     self.gmaps_key = bot.config['gmaps_key']
     self.http_session = aiohttp.ClientSession()
     self.session = aiotba.TBASession(tba_config['key'], self.http_session)
コード例 #2
0
    def __init__(self, bot):
        super().__init__(bot)
        self.games = {}

        tba_config = bot.config['tba']
        self.tba_parser = aiotba.TBASession(tba_config['key'], self.bot.http_session)