You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.py
+12-8Lines changed: 12 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
importsys
2
-
3
1
fromkeyauthimportapi
2
+
3
+
importsys
4
4
importtime
5
5
importos
6
6
importhashlib
@@ -12,7 +12,12 @@
12
12
13
13
# watch setup video if you need help https://www.youtube.com/watch?v=L2eAQOmuUiA
14
14
15
-
os.system("cls & title Python Example")
15
+
ifos.name=='nt':
16
+
os.system('cls & title Python Example')
17
+
else:
18
+
os.system('clear')
19
+
sys.stdout.write("\x1b]0;Python Example\x07")
20
+
16
21
print("Initializing")
17
22
18
23
@@ -131,14 +136,13 @@ def answer():
131
136
# * Send chat message
132
137
# keyauthapp.chatSend("MESSAGE", "CHANNEL")
133
138
139
+
# * Add Application Information to Title
140
+
# os.system(f"cls & title KeyAuth Python Example - Total Users: {keyauthapp.app_data.numUsers} - Online Users: {keyauthapp.app_data.onlineUsers} - Total Keys: {keyauthapp.app_data.numKeys}")
134
141
135
142
# * Auto-Login Example (THIS IS JUST AN EXAMPLE --> YOU WILL HAVE TO EDIT THE CODE PROBABLY)
136
143
# 1. Checking and Reading JSON
137
144
138
-
# * Add Application Information to Title
139
-
# os.system(f"cls & title KeyAuth Python Example - Total Users: {keyauthapp.app_data.numUsers} - Online Users: {keyauthapp.app_data.onlineUsers} - Total Keys: {keyauthapp.app_data.numKeys}")
140
-
141
-
#### Note: Remove the ''' on line 140 and 199
145
+
#### Note: Remove the ''' on line 147 and 222
142
146
143
147
'''try:
144
148
if os.path.isfile('auth.json'): #Checking if the auth file exist
0 commit comments