forked from karan51ngh/RedditRefresh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwelcome.py
More file actions
31 lines (26 loc) · 1.11 KB
/
Copy pathwelcome.py
File metadata and controls
31 lines (26 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
def display_comment_or_delete_menu():
print("Select a mode")
print("1. DELETE (this option will first HASH your content and then DELETE)")
print("2. HASH (this option will only HASH your content)")
def get_user_selected_mode():
choice = input("Enter your choice (1-2): ")
if choice == "1":
return True
elif choice == "2":
return False
print(f"The value {choice} is not in range (1-2). Defaulting to HASH.")
return False
def display_menu(option):
print("Welcome to the Menu")
print(f"1. {option} all your Comments from a particular Subreddit.")
print(f"2. {option} all your Posts from a particular Subreddit")
print(f"3. {option} all your Comments before a particular Date")
print(f"4. {option} all your Posts before a particular Date")
print(f"5. {option} all your Comments after a particular Date")
print(f"6. {option} all your Posts after a particular Date")
print(
f"7. Change to {'Delete' if option == 'Hash' else 'Hash'} mode")
print("8. Quit")
def get_user_choice():
choice = input("Enter your choice (1-8): ")
return choice