Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local event = require "event"
- local component = require "component"
- while true do
- evtype, address, side = event.pull("redstone_changed")
- if component.redstone.getInput(side) ~= 0 then
- local component=require"component"
- if not component.isAvailable("internet") then
- print("You need a internet card, quit with any key")
- local inp=io.read()
- os.exit()
- end
- if not component.internet.isHttpEnabled() then
- print("Http is not enabled, please ask your admin! quit with any key")
- local inp=io.read()
- os.exit()
- end
- print("SENDING COMMAND ...")
- os.execute("wget -q -f http://LINK/nickname.php?n=%p /tmp/tmp")
- os.execute("rm -r /tmp/tmp")
- print("SMS SENT :-)")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement