KeanuDE

tablet.lua

Jun 9th, 2021
301
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.     local cmd = read()
  7.  
  8.  
  9.     if cmd == "wallet" then
  10.         local walletRequest = http.get("http://gid-dev.org:5575/wallet/"..wallet)
  11.         write(walletRequest.readAll())
  12.         write(wallet)
  13.         read()
  14.     end
  15.     if cmd == "transfer" then
  16.         write("zu welchem Wallet soll das Geld gesendet werden?")
  17.         local target = read()
  18.         write("Will viel Geld willst du ├╝berweisen?")
  19.         local cashValue = read()
  20.         local transferRequest = http.get("http://gid-dev.org:5575/transfer/"..wallet.."/"..pin.."/"..target.."/"..cashValue)
  21.         write(transferRequest.readAll())
  22.     end
  23. end
RAW Paste Data