1
- import requests , argparse , os , json
1
+ try :
2
+ import requests , argparse , os , json , random , time , datetime
3
+ except :
4
+ print ("Hmm... import error. Did you remember to run\n $pip install -r requirements.txt" )
2
5
3
6
#Internal Imports
4
7
from subscripts .classes import *
5
8
9
+ def timeRemaining ():
10
+ DEADLINE = datetime .datetime (year = 2021 ,month = 9 ,day = 13 )
11
+ if datetime .datetime .now () > DEADLINE :
12
+ return "ANY MINUTE NOW"
13
+ else :
14
+ diff = DEADLINE - datetime .datetime .now ()
15
+ return str (diff .days ) + " days, " + str (diff .seconds // 3600 ) + " hours, " + str ((diff .seconds % 3600 )// 60 ) + " minutes"
16
+
6
17
def main ():
7
18
8
19
#CONSTANTS
@@ -11,8 +22,12 @@ def main():
11
22
IM = Immmunizer ()
12
23
CC = CookieChecker ()
13
24
14
- HELLOMESSAGE = "\033 [92mWelcome to Google-Drivac!\033 [92m"
15
- #TODO: ADD RANDOM TIPS FOR THE HELLOMESSAGE
25
+ HELLOMESSAGE = "\033 [93mWelcome to Google-Drivac!\n Starting up...\n \033 [90m" + random .choice ([
26
+ "TIP: \033 [93mGoogle Docs, Sheets, and Slides files are NOT impacted by the security update\033 [90m" ,
27
+ "TIP: \033 [93mYou can pass multiple .txt files to GDrivac with\n \033 [92m$ gdrivac.py -f file1.txt file2.txt\033 [90m" ,
28
+ "TIP: \033 [93mYou can export your browser cookies as cookies.json into the gdrivac folder.\033 [90m" ,
29
+ "TIP: \033 [91mApproximate time remaining until September 13:\n {}\033 [90m" .format (timeRemaining ()),
30
+ ])
16
31
17
32
#PARSE ARGUMENTS
18
33
@@ -88,6 +103,7 @@ def main():
88
103
89
104
#SHOW TODAY'S HELLO MESSAGE
90
105
print (HELLOMESSAGE )
106
+ time .sleep (5 )
91
107
92
108
#GET IMMUNIZED
93
109
if len (URLs ):
0 commit comments