diff --git a/miyu_bot/commands/cogs/event.py b/miyu_bot/commands/cogs/event.py index b7b00bd..8ba28b3 100644 --- a/miyu_bot/commands/cogs/event.py +++ b/miyu_bot/commands/cogs/event.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') diff --git a/miyu_bot/commands/cogs/music.py b/miyu_bot/commands/cogs/music.py index 426abad..2c90dd7 100644 --- a/miyu_bot/commands/cogs/music.py +++ b/miyu_bot/commands/cogs/music.py @@ -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