Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- AppMANAGER v1.0 by FoxWorn3365 >>>> Hack Store - AppGO!
- -- Funzioni basiche
- function giremu(inputstr, sep)
- local t={}
- for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
- table.insert(t, str)
- end
- return t
- end
- -- Programma
- function getInput()
- x, y = term.getCursorPos()
- print("appgo> ")
- term.setCursorPos(x+6, y)
- return read()
- end
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- term.clear()
- term.setCursorPos(1, 1)
- print("user> app start\nBenvenuto, utente su AppGO!\nQui potrai gestire le applicazioni e tutti i programmi!\nPer aiuto scrivi help\nPer uscire scrivi exit o quit")
- while true do
- cmdInit = getInput()
- cmd = giremu(cmdInit, " ")
- if cmd[1] == "help" then
- print("AppGO! Help\nlist -> Lista delle app\ninstall <appname> -> installa\npurge <appname> -> elimina\nupdate <appname> -> aggiorna\nself -> Aggiorna AppGO!\nexit / quit -> esci\nfrw list -> framework list\nfrw install <appname> -> installa un framework\nfrw remove <appname> -> rimuovi un framework\n")
- elseif cmd[1] == "list" then
- for i, k in pairs(fs.list("/Hack/programmi/")) do
- print(k)
- end
- elseif cmd[1] == "install" and cmd[2] ~= nil then
- print("Nessuna app trovata con quel nome!")
- elseif cmd[1] == "purge" and cmd[2] ~= nil then
- if fs.isDir("/Hack/programmi/"..cmd[2]) == true then
- shell.run("rm /Hack/programmi/"..cmd[2])
- print("Programma "..cmd[2].." disinstallato con successo!")
- else
- print("Non ho trovato nessuna app / programma con quel nome!")
- end
- elseif cmd[1] == "exit" or cmd[1] == "quit" then
- shell.run("desktop")
- elseif cmd[1] == "update" and cmd[2] ~= nil then
- print("ERRORE DI SISTEMA! Framework Fox.NET/2 non trovato!")
- elseif cmd[1] == "self" then
- shell.run("rm /Hack/programmi/appGo/exec.luaDir")
- shell.run("pastebin get kYbps2Ur /Hack/programmi/appGo/exec.luaDir")
- print("AppGO! Aggiornato con successo!")
- else
- print("Il comando รจ inesistente oppure corrotto")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement