From f9cebb7d1dc693f9e61e9333a66e2225ba5a85b3 Mon Sep 17 00:00:00 2001 From: myumyu <23904-myumyu@users.noreply.gitgud.io> Date: Sun, 17 Oct 2021 00:18:24 +0100 Subject: [PATCH] Updated config example and README --- README.md | 4 +++- config/config_example.py | 12 ++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 3f70034..4fa6160 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # afkglobal -Obviously requires global manage permissions. \ No newline at end of file +A simple python script that sends ugly notifications when something happens on a jschan imageboard that you moderate. + +Global manage permissions are required. \ No newline at end of file diff --git a/config/config_example.py b/config/config_example.py index 202c0fd..2791fa0 100755 --- a/config/config_example.py +++ b/config/config_example.py @@ -1,16 +1,16 @@ -IB_DOMAIN_NAME = "dummyimageboard.ib" -GLOBAL_MOD_USERNAME = "dummyglobalmoderator" -GLOBAL_MOD_PASSWORD = "dummypassword" +IB_DOMAIN_NAME = "dummy.ib" +GLOBAL_MOD_USERNAME = "dummy_username" +GLOBAL_MOD_PASSWORD = "dummy_password" LIVE_POSTS_RETRY_TIMEOUT = 25 # seconds -FETCH_REPORTS_INTERVAL = 30 # seconds +FETCH_REPORTS_INTERVAL = 60 * 2 # seconds USE_TERMUX_API = False BLACKLIST = ( - r"\bm+o+d+s*\b", + r"\bd+u+m+m+y*\b", ) URL_WHITELIST = ( - r"^(\w*\.)*google.com(/.*)?$", + r"(\w*:/+)*(\w*\.)*(dummy.com)(/+\w*)*", )