SHOW:
|
|
- or go back to the newest paste.
1 | function ininstaller(code,name) | |
2 | local response = http.get( | |
3 | "http://pastebin.com/raw/"..code | |
4 | ) | |
5 | ||
6 | if response then | |
7 | ||
8 | local sResponse = response.readAll() | |
9 | response.close() | |
10 | h = fs.open(name,"w") | |
11 | h.write(sResponse) | |
12 | h.close() | |
13 | return sResponse | |
14 | else | |
15 | print( "Failed." ) | |
16 | end | |
17 | end | |
18 | term.clear() | |
19 | term.setCursorPos(1, 1) | |
20 | print("Installing...") | |
21 | if not fs.exists("mine") == true then | |
22 | ininstaller("sKw4TY2m","mine") | |
23 | sleep(0.3) | |
24 | end | |
25 | sleep(0.25) | |
26 | if not fs.exists("mine2") == true then | |
27 | ininstaller("uxFcBnFB","mine2") | |
28 | sleep(0.3) | |
29 | end | |
30 | sleep(0.25) | |
31 | if not fs.exists("mine3") == true then | |
32 | ininstaller("32KicVhL","mine3") | |
33 | sleep(0.3) | |
34 | end | |
35 | sleep(0.25) | |
36 | if not fs.exists("mine4") == true then | |
37 | ininstaller("JH83qrQY","mine4") | |
38 | sleep(0.3) | |
39 | end | |
40 | sleep(0.25) | |
41 | if not fs.exists("torch") == true then | |
42 | ininstaller("X1vczfG6","torch") | |
43 | sleep(0.3) | |
44 | end | |
45 | sleep(0.25) | |
46 | if not fs.exists("stripmine") == true then | |
47 | ininstaller("xqZYmzsN","stripmine") | |
48 | sleep(0.3) | |
49 | end | |
50 | sleep(0.25) | |
51 | if not fs.exists("detect") == true then | |
52 | ininstaller("x9mcx4yi","detect") | |
53 | sleep(0.3) | |
54 | end | |
55 | if not fs.exists("pasteupdate") == true then | |
56 | ininstaller("tSmjdJ7w","pasteupdate") | |
57 | os.loadAPI("pasteupdate") | |
58 | sleep(0.3) | |
59 | end | |
60 | term.clear() | |
61 | term.setCursorPos(1, 1) | |
62 | print("Installed Stripmine program by Jey0") | |
63 | sleep(2) |