[ChatChart] Show total messages in message load screen. (#175)

* [ChatChart] Show total messages in message load screen.

Now shows "####/5000 messages gathered rather than "#### messages gathered" on load screen.

* Now dynamically displays total rather than just 5000.
This commit is contained in:
dudeamax99
2020-10-21 15:07:15 -04:00
committed by GitHub
parent d6c42a0aac
commit 490af1ddaf

View File

@@ -125,7 +125,7 @@ class Chatchart(commands.Cog):
await asyncio.sleep(0.005)
if history_counter % 250 == 0:
new_embed = discord.Embed(
description=f"This might take a while...\n{history_counter} messages gathered",
description=f"This might take a while...\n{history_counter}/{messages} messages gathered",
colour=await self.bot.get_embed_colour(location=channel),
)
await em.edit(embed=new_embed)