KeanuDE

tablet.lua

Jun 9th, 2021
385
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local wallet = "EO5DZICeqPy2"
  2. local pin = "3294"
  3. local running = true
  4.  
  5. while running do
  6.     term.clear()
  7.     term.setCursorPos(1, 1)
  8.     write("Dein Wallet: "..wallet.."\n")
  9.     local cmd = read()
  10.  
  11.  
  12.     if cmd == "wallet" then
  13.         local walletRequest = http.get("http://gid-dev.org:5575/wallet/"..wallet)
  14.         write(walletRequest.readAll().."\n")
  15.         write(wallet)
  16.         read()
  17.     end
  18.     if cmd == "transfer" then
  19.         write("zu welchem Wallet soll das Geld gesendet werden?\n")
  20.         local target = read()
  21.         write("Will viel Geld willst du ├╝berweisen?\n")
  22.         local cashValue = read()
  23.         local transferRequest = http.get("http://gid-dev.org:5575/transfer/"..wallet.."/"..pin.."/"..target.."/"..cashValue)
  24.         write(transferRequest.readAll())
  25.     end
  26.     if cmd == "exit" then
  27.         running = false
  28.         write("Goodbye.")
  29.     end
  30. end
RAW Paste Data