Fix error in define

pull/45/head
Stijn De Clercq 2021-02-25 10:45:48 +01:00
parent a2b7602680
commit 415ac2eeb3
1 changed files with 4 additions and 0 deletions

View File

@ -86,6 +86,10 @@ class Define(commands.Cog):
"""
text = text.replace("[", "")
text = text.replace("]", "")
if not text:
return "N/A"
return text if len(text) < 1024 else text[:1021] + "..."
def ratio(self, dic):