changes to config to enable multiflair support

This commit is contained in:
2026-03-05 20:45:46 +00:00
parent 87f1f12bc8
commit 0e70503a3b
4 changed files with 122 additions and 66 deletions
+4 -8
View File
@@ -6,12 +6,8 @@ user_agent = "Flair Timer Mod Mail Bot"
#Subreddits
subreddit = "" # "INEEEEDIT" "Ofcoursethatsathing" "All"
flair_text = "" # Case Sensitive
interval = 30 # How often should the bot scan the subreddit for these posts, in seconds. Higher = slower/less accurate/save resources, lower = faster/more accurate/use more resources.
hours = 0.17 # How many hours must the flair been on the post to send the notification
messagetitle = "" # Title of the modmail
searchlimit = 900 # Max: 1000, this should only be limited to save on resources. The bot sorts by new and if it isn't catching posts that are being changed to the flair simply because they are too old (say the 301st post on the subreddit is changed to the flair) then increase this limit.his limit.
searchlimit = 900 # Max: 1000, this should only be limited to save on resources. The bot sorts by new and if it isn't catching posts that are being changed to the flair simply because they are too old (say the 301st post on the subreddit is changed to the flair) then increase this limit.
+12
View File
@@ -0,0 +1,12 @@
# flairconfig.py
# This file defines the list of flair time configs for the bot.
# Edit this file to customize flair behaviors.
flair_times = [
{
"flair_text": "Waiting for OP",
"hours": 48,
"messagetitle": "Modmail Notification",
},
# Add more configs as needed
]