Advertisement
fishermedders

jokes

Feb 22nd, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. t = term
  2. shell.run("pastebin get 4nRg9CHU json")
  3. t.setBackgroundColor(colors.white)
  4. t.setTextColor(colors.lightGray)
  5. t.clear()
  6. t.setCursorPos(1,1)
  7.  
  8. function line()
  9. print("---------------------------------------------------")
  10. end
  11.  
  12.  
  13. while true do
  14. os.loadAPI("json")
  15. site = http.get("http://www.api.yomomma.info/").readAll()
  16. obj = json.decode(site)
  17. value = obj.joke
  18. print(value)
  19. line()
  20. sleep(3)
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement