mirror of
https://github.com/RafaelSolVargas/Vulkan.git
synced 2025-10-29 16:57:23 +00:00
Do not accept phrases from api that doesn't have an author name
This commit is contained in:
@@ -51,6 +51,9 @@ class Phrases(commands.Cog):
|
|||||||
phrase = data['quoteText']
|
phrase = data['quoteText']
|
||||||
author = data['quoteAuthor']
|
author = data['quoteAuthor']
|
||||||
|
|
||||||
|
if phrase == '' or author == '': # Don't accept incomplete phrases
|
||||||
|
continue
|
||||||
|
|
||||||
text = f'{phrase} \nBy: {author}'
|
text = f'{phrase} \nBy: {author}'
|
||||||
|
|
||||||
return text
|
return text
|
||||||
|
|||||||
Reference in New Issue
Block a user