-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripts
executable file
·79 lines (58 loc) · 1.79 KB
/
scripts
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/home/simonl/.pyenv/shims/python
import fire as _fire
import temp as _temp
from meditation_timer import bell_sound as _bell_sound
from playstore_scraper import get_playstore_latest_version as _get_playstore_latest_version
from sms import print_inbox as _print_inbox
from spotify import spotify as _spotify
def spotify():
"""
Plays random song from uncategorized playlist
"""
_spotify.main()
def playstore_commit():
"""
Gets the latest version of MoMi from playstore.
Saves it to a file for AutoKey.
"""
_get_playstore_latest_version.main()
def meditate(total: int = 60 * 60, interval: int = 60 * 15):
"""
Meditation timer.
- plays background sound
- plays bel at given interval
- counts down time between each interval
- tapping enter indicates mind wandering
:param total: total meditaion time in minutes. Defaults to 1 Hour
:param interval: bell interval in minutes. Defaults to 15 mins
"""
_bell_sound.main(total, interval)
class sms:
"""Twilio SMS functions"""
def inbox(self, total: int = 60 * 60, interval: int = 60 * 15):
"""
Print SMS inbox for number
"""
_print_inbox.main()
def temp(*args, **kwargs):
"""Temporary scripts run here"""
_temp.main(*args, **kwargs)
def _main():
_fire.Fire()
def _setup():
pass
def _teardown():
pass
# for reader in _env.LOG_READERS:
# reader.kill()
if __name__ == "__main__":
_setup()
try:
_main()
except Exception as err:
raise
# if 'find cheat method' in str(err):
# _safe_logging.log("\n\tCould not find cheat method, ensure spelling is correct + the cheat is on the current build\n")
# else:
# _traceback.print_exc()
_teardown()