From 415ac2eeb3873814ffffe1a2ecc7bb650a01f56b Mon Sep 17 00:00:00 2001 From: Stijn De Clercq Date: Thu, 25 Feb 2021 10:45:48 +0100 Subject: [PATCH] Fix error in define --- cogs/define.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cogs/define.py b/cogs/define.py index 1adc440..23eba64 100644 --- a/cogs/define.py +++ b/cogs/define.py @@ -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):