fix t20 function name

pull/1/head
qwewqa 4 years ago
parent 66d9ccca1c
commit f85640569b
  1. 4
      miyu_bot/commands/cogs/event.py
  2. 2
      miyu_bot/commands/cogs/music.py

@ -29,7 +29,7 @@ class Event(commands.Cog):
aliases=['ev'],
description='Finds the event with the given name.',
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}".')
event: EventMaster
@ -203,7 +203,7 @@ class Event(commands.Cog):
aliases=['top20', 'top_20'],
description='Displays the top 20 in the main leaderboard',
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 session.get('http://www.projectdivar.com/eventdata/t20') as resp:
leaderboard = await resp.json(encoding='utf-8')

@ -287,7 +287,7 @@ class Music(commands.Cog):
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()
difficulty = ChartDifficulty.Expert

Loading…
Cancel
Save