Last active
May 22, 2017 20:28
-
-
Save micmmakarov/db6552eeb6c8d778464f049ea844f7dd to your computer and use it in GitHub Desktop.
GoComfy bot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
warmMySpaceIfSomeoneMadeAColdRequest = function() { | |
last_request_is_make_cold = $($('.activity-grid .activity-grid-row.ng-scope')[0]).find('img').attr('src').includes('toohot'); | |
if (last_request_is_make_cold) { | |
$(".btn-warm").click(); | |
console.log("Someone triggered cold request. But don't worry, I'll heat it up for you!"); | |
} else { | |
console.log('Last request was not the cold request'); | |
} | |
} | |
hotbot = setInterval(warmMySpaceIfSomeoneMadeAColdRequest, 10*60000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment