mirror of
https://git.squeakyrat.moe/faggot-chan/
synced 2026-11-04 18:35:45 +01:00
small decrease in chance of replying
I should make this a parameter later...
This commit is contained in:
1 parent
442dfae1b8
commit
5428acfe87
1 file changed
+3
-3
@@ -55,7 +55,7 @@ block_id = ["1000000000000003", "1000000000000004"] #fuck these two in particula
|
||||
moralfag_id = "1000000000000002"
|
||||
moralfag_counter = 0
|
||||
moralfag_skip = False
|
||||
faglimit = 3 #ignore every x reply
|
||||
faglimit = 2 #ignore every x reply
|
||||
|
||||
last_server_message = 0.0 # unix timestamp of last message anyone sent in the server
|
||||
dm_sent = False
|
||||
@@ -181,7 +181,7 @@ async def random_dm():
|
||||
while not client.is_closed():
|
||||
await asyncio.sleep(600) #every 10 minutes
|
||||
for guild in client.guilds:
|
||||
if random.random() < 0.005: #should be 0.5%
|
||||
if random.random() < 0.001: #should be 0.1%
|
||||
members = [m for m in guild.members if not m.bot]
|
||||
if dm_sent:
|
||||
dm_sent = False
|
||||
@@ -394,7 +394,7 @@ async def on_message(message):
|
||||
moralfag_skip = False
|
||||
return
|
||||
|
||||
if not mentioned and random.random() > 0.05: #5% chance of replying if not mentiond
|
||||
if not mentioned and random.random() > 0.03: #3% chance of replying if not mentiond
|
||||
return
|
||||
|
||||
if replied_message:
|
||||
|
||||
Reference in new issue
Block a user