-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommon.py
43 lines (37 loc) · 1003 Bytes
/
common.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
31
32
33
34
35
36
37
38
39
40
41
42
43
from colorama import Fore, Style, init
def b(text: str):
return Fore.BLUE + text + Style.RESET_ALL
def g(text: str):
return Fore.GREEN + text + Style.RESET_ALL
def p(text: str):
return Fore.MAGENTA + text + Style.RESET_ALL
def o(text: str):
return Fore.ORANGE + text + Style.RESET_ALL
def c(text: str):
return Fore.CYAN + text + Style.RESET_ALL
def y(text: str):
return Fore.YELLOW + text + Style.RESET_ALL
def pocketcalc(hour:str):
match hour:
case "00" | "01" | "02" | "03" | "04" | "22" | "23":
return "night"
case "05" | "06" | "07" | "08" | "09" | "10" | "11":
return "morning"
case "12" | "13" | "14" | "15" | "16":
return "day"
case "17" | "18" | "19" | "20" | "21":
return "evening"
case _:
return "campsite"
keywords_snow = [
"snow",
"blizzard",
"snowstorm",
]
keywords_rain = [
"rain",
"mist",
"shower",
"drizzle",
"mist"
]