Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- https://github.com/gamax92/LionRay
- -- http://drivetts.ehubsoft.net
- local component = require("component")
- local shell = require("shell")
- local unicode=require("unicode")
- local tape = component.tape_drive
- local args = shell.parse(...)
- local koko = {
- "12:00",
- "06:00",
- }
- if args[1] == nil then
- print("[назв проги] [время]")
- return
- else
- while true do
- time = unicode.sub(os.date(),10,14)
- pos = tape.getPosition()
- if pos > tonumber(args[1]) then
- tape.stop()
- tape.seek(-pos)
- end
- for _,gg in pairs(koko) do
- if time == gg then
- tape.play()
- end
- end
- os.sleep(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement