From e0fd5b9668050fbf78e8119846ca090afb2290e3 Mon Sep 17 00:00:00 2001 From: brandons209 Date: Fri, 24 Apr 2020 23:50:17 -0400 Subject: [PATCH] fixed an issue with receipts not updating --- costmanager/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/costmanager/manager.py b/costmanager/manager.py index 4c12fbe..9012258 100644 --- a/costmanager/manager.py +++ b/costmanager/manager.py @@ -144,7 +144,7 @@ class CostManager(commands.Cog): last_num = int(content[-1].split(".")[0]) content.append(RECEIPT_MESSAGE.format(last_num + 1, command, cost, currency_name)) - if len("\n".join(content)) > MAX_MSG_LEN: + while len("\n".join(content)) > MAX_MSG_LEN: del content[0] content = "\n".join(content)