-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbye_vk.py
30 lines (24 loc) · 875 Bytes
/
bye_vk.py
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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from actions import \
delete_messages, delete_wall, delete_fave, delete_albums, delete_videos, delete_profile, delete_docs, \
quit_program
from core.sleep_inhibitors import get_sleep_inhibitor
from core.updater import check_update, print_welcome
action_list = [
delete_messages, delete_wall, delete_fave, delete_albums, delete_videos,
delete_profile, delete_docs,
quit_program
]
def main():
with get_sleep_inhibitor():
# check_update()
print_welcome()
while True:
print("\nВыберите действие:")
for action_id, action in enumerate(action_list):
print(f"{action_id+1:2}. {action.__doc__}")
need_action_id = int(input("> ")) - 1
action_list[need_action_id]()
if __name__ == "__main__":
main()