예제 #1
0
 def __init__(self, bot, auto=False):
     self.bot = bot
     self.db = DB(name="main", loop=bot.loop)
     self.loop = bot.loop
     self.players = None
     self.events = None
     self.party = None
     self.static_party = None
     if auto:
         self.loop.create_task(self.initialize())
예제 #2
0
 def _load_data(self):
     self.db = DB(self._config)
     self.db.load_data()