-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtest.lua
More file actions
48 lines (36 loc) · 862 Bytes
/
test.lua
File metadata and controls
48 lines (36 loc) · 862 Bytes
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
server = "your website"
c = gg.makeRequest(server.."/mykey").content
ch = gg.prompt(
{'Enter your key and pres ok to continue'},
{[1] = c},
{[1] = 'text'})
if ch == nill then
gg.alert("Please enter key and press ok")
os.exit()
end
pass = ch[1]
str = pass
if string.find(str, "/") then
gg.alert("Invlied Key")
os.exit()
end
if pass == "" then
x = gg.alert("Wrong key\n Get key form here \n\n"..server,"copy link")
if x == 1 then
gg.copyText(server)
end
os.exit()
end
a = gg.makeRequest(server.."/login/"..pass.."").content
if a == "true" then
gg.alert("Login Success")
elseif a =="false" then
x = gg.alert("Wrong key\n Get key form here \n\n "..server,"copy link")
if x == 1 then
gg.copyText(server)
end
os.exit()
else
gg.alert("No response form server/No internet Connection")
os.exit()
end