From 3fc1b8271a6aabf10bc9cf2fa8031cbc4d0a2e1c Mon Sep 17 00:00:00 2001 From: PC-Admin Date: Mon, 10 Jul 2023 02:48:44 +0800 Subject: [PATCH] move recommended tags list out of variables file --- hardcoded_variables.py | 1 - rdlist_commands.py | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hardcoded_variables.py b/hardcoded_variables.py index 80c4ed3..7f3afaf 100644 --- a/hardcoded_variables.py +++ b/hardcoded_variables.py @@ -6,5 +6,4 @@ base_url = "example.org" access_token = "" # rdlist specific rdlist_bot_username = "mod_team" -rdlist_recommended_tags = ['hub_room_links', 'hub_room_trade', 'preban', 'degen_misc', 'beastiality', 'degen_porn', 'gore', 'snuff', 'degen_larp', 'hub_room_sussy', 'bot_spam', 'cfm', 'jailbait', 'bot_porn', 'toddlercon', 'loli', 'csam', 'tfm', 'degen_meet', 'stylized_3d_loli', '3d_loli'] ########################################################################### diff --git a/rdlist_commands.py b/rdlist_commands.py index 421148e..6c26b7b 100644 --- a/rdlist_commands.py +++ b/rdlist_commands.py @@ -37,11 +37,13 @@ def sync_rdlist(): subprocess.run(["git", "clone", "ssh://gitea@code.glowers.club:1488/loj/rdlist.git"], check=True) def block_all_rooms_with_rdlist_tags(rdlist_use_recommended,preset_user_ID,preset_new_room_name,preset_message,preset_purge_choice,preset_block_choice): + # Recommended tags for rdlist + rdlist_recommended_tags = ['hub_room_links', 'hub_room_trade', 'preban', 'degen_misc', 'beastiality', 'degen_porn', 'gore', 'snuff', 'degen_larp', 'hub_room_sussy', 'bot_spam', 'cfm', 'jailbait', 'bot_porn', 'toddlercon', 'loli', 'csam', 'tfm', 'degen_meet', 'stylized_3d_loli', '3d_loli'] # Git clone the rdlist repo to ./rdlist/ sync_rdlist() if rdlist_use_recommended == True: # Take input from the user and convert it to a list - blocked_tags = hardcoded_variables.rdlist_recommended_tags + blocked_tags = rdlist_recommended_tags print("\nUsing recommended rdlist tags.\n") elif rdlist_use_recommended == False: # After the git repo has been cloned/pulled, open the file and read it into a string