Skip to content

Commit

Permalink
use correct error message - missing key for lyrics
Browse files Browse the repository at this point in the history
  • Loading branch information
LBlend authored Feb 12, 2023
1 parent ace239a commit 7612881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion musicbot/cogs/music/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ async def _lyrics(self, ctx, *query: str):
""" Search for lyrics of a song """
# Check for API key
if not (genius_access_token := self.bot.APIkeys.get('genius')):
return await ctx.send(ctx.localizer.format_str('{history.title}'))
return await ctx.send(ctx.localizer.format_str('{errors.missing_api_key}'))

# Extract all arguments into a single string
query = ' '.join(query)
Expand Down

0 comments on commit 7612881

Please sign in to comment.