Clarify that truth times are in UTC

This commit is contained in:
Nexus 2024-04-21 23:37:19 +01:00
parent 0ecb651b2d
commit c332d25adf
Signed by: nex
GPG key ID: 0FA334385D0B689F
2 changed files with 6 additions and 3 deletions

View file

@ -184,7 +184,7 @@ class AutoResponder(commands.Cog):
message: discord.Message,
*domains: str,
additional: Iterable[str] = None
) -> discord.File | None:
) -> None:
additional = additional or []
links = self.extract_links(message.content, *domains) + list(additional)
if links:

View file

@ -266,13 +266,16 @@ class QuoteQuota(commands.Cog):
"""
hrs = [x.zfill(2) for x in hours.keys()]
plt.clf()
plt.title("Truth times")
plt.title("Truth times (UTC)")
plt.xlabel("Hour")
plt.ylabel("Truths")
plt.bar(hrs, list(hours.values()), color="#5448EE")
average = sum(hours.values()) / len(hours)
plt.axhline(average, color="red", linestyle="--", label=f"Average: {average:.1f}")
file = io.BytesIO()
plt.savefig(file, format="jpg")
plt.savefig(file, format="png")
file.seek(0)
return discord.File(file, "truths.png")