Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t = term
- shell.run("pastebin get 4nRg9CHU json")
- t.setBackgroundColor(colors.white)
- t.setTextColor(colors.lightGray)
- t.clear()
- t.setCursorPos(1,1)
- function line()
- print("---------------------------------------------------")
- end
- while true do
- os.loadAPI("json")
- site = http.get("http://www.api.yomomma.info/").readAll()
- obj = json.decode(site)
- value = obj.joke
- print(value)
- line()
- sleep(3)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement