fix t20 function name

This commit is contained in:
qwewqa 2021-01-14 09:03:33 -05:00
parent 66d9ccca1c
commit f85640569b
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ class Event(commands.Cog):
aliases=['ev'], aliases=['ev'],
description='Finds the event with the given name.', description='Finds the event with the given name.',
help='!event pkcooking') help='!event pkcooking')
async def event(self, ctx: commands.Context, *, arg: commands.clean_content = ""): async def event(self, ctx: commands.Context, *, arg: commands.clean_content = ''):
self.logger.info(f'Searching for event "{arg}".') self.logger.info(f'Searching for event "{arg}".')
event: EventMaster event: EventMaster
@ -203,7 +203,7 @@ class Event(commands.Cog):
aliases=['top20', 'top_20'], aliases=['top20', 'top_20'],
description='Displays the top 20 in the main leaderboard', description='Displays the top 20 in the main leaderboard',
help='!t20') help='!t20')
async def time_left(self, ctx: commands.Context): async def t20(self, ctx: commands.Context):
async with aiohttp.ClientSession() as session: async with aiohttp.ClientSession() as session:
async with session.get('http://www.projectdivar.com/eventdata/t20') as resp: async with session.get('http://www.projectdivar.com/eventdata/t20') as resp:
leaderboard = await resp.json(encoding='utf-8') leaderboard = await resp.json(encoding='utf-8')

View File

@ -287,7 +287,7 @@ class Music(commands.Cog):
return embeds, files return embeds, files
def parse_chart_args(self, arg: commands.clean_content) -> Tuple[str, ChartDifficulty]: def parse_chart_args(self, arg: str) -> Tuple[str, ChartDifficulty]:
split_args = arg.split() split_args = arg.split()
difficulty = ChartDifficulty.Expert difficulty = ChartDifficulty.Expert