-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathowl_logo.py
60 lines (42 loc) · 2.16 KB
/
owl_logo.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
from datetime import datetime
from owl.notifications import Notifier
from owl.config import load_config
def print_owl():
print(r"""
# _____ _ _ _____ ____ __ __ _ ___ _____
# | __ \ | \ | | / ____| / __ \\ \ / /| | / _ \ | ____|
# | | | || \| || (___ | | | |\ \ /\ / / | | __ __| | | | | |__
# | | | || . ` | \___ \ | | | | \ \/ \/ / | | \ \ / /| | | | |___ \
# | |__| || |\ | ____) | | |__| | \ /\ / | |____ \ V / | |_| |_ ___) |
# |_____/ |_| \_||_____/ \____/ \/ \/ |______| \_/ \___/(_)|____/
__________-------____ ____-------__________
\------____-------___--__---------__--___-------____------/
\//////// / / / / / \ _-------_ / \ \ \ \ \ \\\\\\\\/
\////-/-/------/_/_| /___ ___\ |_\_\------\-\-\\\\/
--//// / / / //|| (O)\ /(O) ||\\ \ \ \ \\\\--
---__/ // /| \_ /V\ _/ |\ \\ \__---
-// / /\_ ------- _/\ \ \\-
\_/_/ /\---------/\ \_\_/
----\ | /----
| -|- |
/ | \
---- \___|
# by Simon169
""")
def starting_message():
now = datetime.now()
current_time = now.strftime("%d/%m/%Y, %H:%M:%S")
print(f"""
\t Starting DNS-Owl...
\t Time/Date: {current_time}
""")
print_owl()
send_start_notification()
def send_start_notification():
if load_config('./config.json')['NOTIFICATIONS']['ENABLE_NOTIFICATIONS']:
notification_service = Notifier()
notification_service.send_success(f"\tStarting DNS-Owl service!")
if __name__ == "__main__":
starting_message()
# ASCII Art created with https://patorjk.com/software/taag
# Settings: font big, width fitted