Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. @name weed man does the Sex
  2. @inputs
  3. @outputs
  4. @persist HTTPCode:string YourCode:string WeCanUpdate
  5. @trigger
  6. runOnHTTP(1)
  7. if(first()){
  8. if(httpCanRequest()) {
  9. httpRequest("YOURLINKTOTXTHERE"+"?nocache="+realtime())
  10. }
  11. WeCanUpdate == 0
  12. YourCode = getCode()
  13. }
  14. if(httpClk()){
  15. HTTPCode = httpData()
  16. if(YourCode != HTTPCode){
  17. WeCanUpdate == 1
  18. print("Want to update? Type !update to update.")
  19. }
  20. }
  21. runOnChat(1)
  22.  
  23. if(chatClk(owner())){
  24. if(lastSaid() == "!update" && WeCanUpdate){
  25. print("Updating...")
  26. entity():remoteUpload(HTTPCode)
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement