mirror of
https://github.com/brandons209/Red-bot-Cogs.git
synced 2024-05-19 11:52:55 +12:00
fixed an issue with receipts not updating
This commit is contained in:
parent
05791a0630
commit
e0fd5b9668
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue