commit 9b759b341dcb4e16cd16c1f47f420bb6e66fb7c4
parent 0859886a774fa7cb7de8868d16f5869c9cb9f675
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date: Sat, 6 Feb 2021 16:27:24 -0800
Add last period start to countdown speed embed.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/bot.py b/bot.py
@@ -725,6 +725,7 @@ async def speed(ctx, period=24.0):
rate = (stats['total'] - stats['current'])/((countdown.messages[-1].timestamp - countdown.messages[0].timestamp) / period)
embed.description += f"**Average Progress per Period:** {round(rate):,}\n"
embed.description += f"**Record Progress per Period:** {max(speed[1]):,}\n"
+ embed.description += f"**Last Period Start:** {speed[0][-1]}\n"
embed.description += f"**Progress during Last Period:** {speed[1][-1]:,}\n"
embed.set_image(url="attachment://image.png")