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)
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"])