fixed an issue with receipts not updating

This commit is contained in:
brandons209 2020-04-24 23:50:17 -04:00
parent 05791a0630
commit e0fd5b9668

View file

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