mirror of
https://git.squeakyrat.moe/faggot-chan/
synced 2026-11-04 18:35:45 +01:00
lowered the chance of sending a random long message. i should rework it so it only sends like a couple per day but eeehhh this should do the same thing
This commit is contained in:
1 parent
770c5f2b75
commit
328f8a5b4f
1 file changed
+1
-1
@@ -200,7 +200,7 @@ async def random_dm():
|
||||
async def random_message():
|
||||
await client.wait_until_ready()
|
||||
while not client.is_closed():
|
||||
await asyncio.sleep(240) #every 4 minutes
|
||||
await asyncio.sleep(480) #every 8 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%
|
||||
|
||||
Reference in new issue
Block a user