KeanuDE

tablet.lua

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