From fc5df62817c9b2971de4496d9ec583cc6f1e796b Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 28 Aug 2025 12:07:51 -0700 Subject: feat: Add user-specified post limit window --- env.example | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'env.example') diff --git a/env.example b/env.example index efae35a..9ed779a 100644 --- a/env.example +++ b/env.example @@ -18,9 +18,13 @@ ROLEPLAY_MESSAGE=Your post has been removed. Only one roleplay post is allowed p # Bot Settings # How often to check for new posts (in seconds) CHECK_INTERVAL=60 -# Maximum number of posts a user can make in 24 hours +# Maximum number of posts a user can make in the time window MAX_POSTS_PER_DAY=3 -# Maximum number of roleplay posts a user can make in 24 hours +# Maximum number of roleplay posts a user can make in the time window MAX_ROLEPLAY_POSTS_PER_DAY=1 +# Time window for post limits (in hours) +POST_LIMIT_WINDOW_HOURS=24 +# Time window for roleplay post limits (in hours) +ROLEPLAY_LIMIT_WINDOW_HOURS=24 # Set to true to test without actually removing posts DRY_RUN=false -- cgit v1.2.3