diff options
| -rw-r--r-- | arthur/exts/systems/system_information.py | 7 |
1 files changed, 4 insertions, 3 deletions
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: |