Esempio n. 1
0
    async def _create_new_game(self):
        # Create new Game and bind it to the user_id in the queue
        self.bot.games[self.player_id] = Game(self.player, self.ctx.channel,
                                              self.arg, self.bot.time)
        self.bot.games[self.player_id].ctx = self.ctx

        await self.ctx.send(Reply.start_game(self.player_id))
Esempio n. 2
0
 async def _create_new_game(self):
     # Create new Game and bind it to the user_id in the queue
     self.bot.games[self.player_id] = Game(self.player)
     await self.ctx.send(Reply.start_game(self.player_id))
     await asyncio.sleep(1)