File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 22
33import sys
44import time
5+ import platform
56import os
67import hashlib
78from time import sleep
89from datetime import datetime
910
10- # import json as jsond
11+ # import json as jsonds
1112# ^^ only for auto login/json writing/reading
1213
1314# watch setup video if you need help https://www.youtube.com/watch?v=L2eAQOmuUiA
1415
15- if os .name == 'nt' :
16- os .system ('cls & title Python Example' )
17- else :
18- os .system ('clear' )
19- sys .stdout .write ("\x1b ]0;Python Example\x07 " )
16+ if platform .system () == 'Windows' :
17+ os .system ('cls & title Python Example' ) # clear console, change title
18+ elif platform .system () == 'Linux' :
19+ os .system ('clear' ) # clear console
20+ sys .stdout .write ("\x1b ]0;Python Example\x07 " ) # change title
21+ elif platform .system () == 'Darwin' :
22+ os .system ("clear && printf '\e[3J'" ) # clear console
23+ os .system ('''echo - n - e "\033 ]0;Python Example\007 "''' ) # change title
2024
2125print ("Initializing" )
2226
@@ -142,7 +146,7 @@ def answer():
142146# * Auto-Login Example (THIS IS JUST AN EXAMPLE --> YOU WILL HAVE TO EDIT THE CODE PROBABLY)
143147# 1. Checking and Reading JSON
144148
145- #### Note: Remove the ''' on line 147 and 222
149+ #### Note: Remove the ''' on line 151 and 226
146150
147151'''try:
148152 if os.path.isfile('auth.json'): #Checking if the auth file exist
You can’t perform that action at this time.
0 commit comments