Exemplo n.º 1
0
 def __init__(self, **kwargs):
     super().__init__(description=kwargs.pop("description"),
                      command_prefix=self.__get_prefix,
                      activity=kwargs.pop("activity"))
     self.config = Config.fromJSON("config.json")
     self.motorClient = motor_asyncio.AsyncIOMotorClient(
         self.config.mongo['URI'],
         serverSelectionTimeoutMS=self.config.mongo['timeout'])
     self.mongoIO = mongoIO(self)
Exemplo n.º 2
0
Arquivo: bot.py Projeto: Ag-oss/Sunny
 def __init__(self, **kwargs):
     super().__init__(description=kwargs.pop("description"),
                      command_prefix=self.__get_prefix,
                      intents=discord.Intents.all(),
                      activity=kwargs.pop("activity"))
     self.config = Config.fromJSON("config.json")
     self.motorClient = motor_asyncio.AsyncIOMotorClient(
         self.config.mongo['URI'],
         serverSelectionTimeoutMS=self.config.mongo['timeout'])
     self.mongoIO = mongoIO(self)
     self.osuAPI = osuAPI(self.config.osuAPI)
     self.osuHelpers = osuHelper(self)
     self.ppAPI = ppAPI(self.config.ppAPI["URL"],
                        self.config.ppAPI["secret"])