Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name weed man does the Sex
- @inputs
- @outputs
- @persist HTTPCode:string YourCode:string WeCanUpdate
- @trigger
- runOnHTTP(1)
- if(first()){
- if(httpCanRequest()) {
- httpRequest("YOURLINKTOTXTHERE"+"?nocache="+realtime())
- }
- WeCanUpdate == 0
- YourCode = getCode()
- }
- if(httpClk()){
- HTTPCode = httpData()
- if(YourCode != HTTPCode){
- WeCanUpdate == 1
- print("Want to update? Type !update to update.")
- }
- }
- runOnChat(1)
- if(chatClk(owner())){
- if(lastSaid() == "!update" && WeCanUpdate){
- print("Updating...")
- entity():remoteUpload(HTTPCode)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement