async def twitch_top_channels(self, message, count=10): streams = await self.api.top_channels(count) info = [(stream.channel.display_name, '🕹 {}'.format(stream.game), '👀 {:,}'.format(stream.viewers), stream.channel.status) for stream in streams] await self.send_message(message.channel, 'Top {} games on Twitch right now\n{}'.format( len(streams), f.code_block(f.pad_rows(info, ' | '))), delete_after=15)
async def twitch_top_games(self, message, count=10): top_games = await self.api.top_games(count) info = [(top_game.game.name, '📺 {:,}'.format(top_game.channels), '👀 {:,}'.format(top_game.viewers)) for top_game in top_games] await self.send_message(message.channel, 'Top {} games on Twitch right now\n{}'.format( len(top_games), f.code_block(f.pad_rows(info, ' | '))), delete_after=15)
async def twitch_top_games(self, message, count=10): top_games = await self.api.top_games(count) info = [ (top_game.game.name, '📺 {:,}'.format(top_game.channels), '👀 {:,}'.format(top_game.viewers)) for top_game in top_games ] await self.send_message( message.channel, 'Top {} games on Twitch right now\n{}' .format(len(top_games), f.code_block(f.pad_rows(info, ' | '))), delete_after=15 )
async def twitch_top_channels(self, message, count=10): streams = await self.api.top_channels(count) info = [ (stream.channel.display_name, '🕹 {}'.format(stream.game), '👀 {:,}'.format(stream.viewers), stream.channel.status) for stream in streams ] await self.send_message( message.channel, 'Top {} games on Twitch right now\n{}' .format(len(streams), f.code_block(f.pad_rows(info, ' | '))), delete_after=15 )