From 5a29befbc90929551299a7994cb1c9e2f6e014dd Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sat, 1 Jun 2024 17:27:13 +0100 Subject: Allow users to prepare prior to sending positive feedback --- arthur/exts/systems/system_information.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'arthur/exts/systems/system_information.py') diff --git a/arthur/exts/systems/system_information.py b/arthur/exts/systems/system_information.py index 0e8c844..a5c460d 100644 --- a/arthur/exts/systems/system_information.py +++ b/arthur/exts/systems/system_information.py @@ -1,5 +1,6 @@ """Return system information on our production 9front infrastructure.""" +import asyncio import random from datetime import datetime @@ -83,14 +84,14 @@ class SystemInformation(Cog): if random.random() < msg_thresh: logger.trace("Criteria hit, generating comment.") - blogcom = await self.fetch_blogcom() comment = lib9front.generate_blog_comment(blogcom).strip() - await msg.reply(f"{comment} {random.choice(CORPORATE_FRIENDLY_SMILEYS)}") - self.last_sent = datetime.utcnow() + async with msg.channel.typing(): + await asyncio.sleep(3) + await msg.reply(f"{comment} {random.choice(CORPORATE_FRIENDLY_SMILEYS)}") @command(name="software") async def software(self, ctx: Context) -> None: -- cgit v1.2.3