use correct error message - missing key for lyrics

This commit is contained in:
Leander Furumo authored and GitHub committed 2023-02-12 22:31:28 +09:00
1 parent ace239ad1a
commit 76128814c0
1 file changed
+1 -1
+1 -1
View File
@@ -637,7 +637,7 @@ class Music(commands.Cog):
""" 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)