From 4691c843485e16102a6eacdfb7b9348e03a82384 Mon Sep 17 00:00:00 2001
From: Dani <dsapelli@yahoo.com>
Date: Mon, 14 Apr 2025 20:08:59 -0400
Subject: [PATCH] Added a length fix, and adjusted sleep timer.

---
 main.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/main.py b/main.py
index fd20654..493f9ff 100644
--- a/main.py
+++ b/main.py
@@ -61,7 +61,8 @@ class Ruby(discord.Client):
                 speak = random() < 0.5
                 thought = self.trainer.daydream(say_thought=speak)
 
-                if speak and thought:
+                if speak and thought and
+                len(thought.split()) >=4:
                     for guild in self.guilds:
                         for channel in guild.text_channels:
                             if channel.permissions_for(guild.me).send_messages:
@@ -72,7 +73,7 @@ class Ruby(discord.Client):
                 await self.set_activity(None)  # reset to normal
                 self.last_message_time = datetime.utcnow()
 
-            await asyncio.sleep(30)
+            await asyncio.sleep(180)
 
     async def on_message(self, message: discord.Message):
         if message.author.id == self.user.id: