Fix error in define

This commit is contained in:
Stijn De Clercq 2021-02-25 10:45:48 +01:00
parent a2b7602680
commit 415ac2eeb3

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):