aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavid <[email protected]>2026-03-25 17:07:31 +0100
committerdavid <[email protected]>2026-03-25 17:07:31 +0100
commitf47d5b347f3318cd79b4c2ea2caa0e14a4802b0e (patch)
tree4f0e00cb5c2ff9b47590c6b5864f88665e34bf33
parentf55f7b19238070e09be1722eaa588f0c1db07a1a (diff)
downloadfaggot-chan-f47d5b347f3318cd79b4c2ea2caa0e14a4802b0e.tar.gz
faggot-chan-f47d5b347f3318cd79b4c2ea2caa0e14a4802b0e.zip
made long random message extremely unlikely because it was annoying
:(
-rw-r--r--bot.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bot.py b/bot.py
index 67b76e3..9592911 100644
--- a/bot.py
+++ b/bot.py
@@ -196,14 +196,13 @@ async def random_dm():
print(f"[{timestamp()}] random dm to {victim}: {result}")
except Exception as e:
await handle_error(f"[{timestamp()}] failed to send dm to {victim}: {e}", notify_user=victim)
-
async def random_message():
await client.wait_until_ready()
while not client.is_closed():
- await asyncio.sleep(480) #every 8 minutes
+ await asyncio.sleep(600) #every 10 minutes
if time.time() - last_server_message < QUIET_COOLDOWN: #only send if server has been quiet for 10 mins
continue
- if random.random() < 0.01: #1%
+ if random.random() < 0.0001: #0.001%
for guild in client.guilds:
channel = discord.utils.get(guild.text_channels, name="general")
if channel: