Skip to content

Instantly share code, notes, and snippets.

@micmmakarov
Last active May 22, 2017 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save micmmakarov/db6552eeb6c8d778464f049ea844f7dd to your computer and use it in GitHub Desktop.
Save micmmakarov/db6552eeb6c8d778464f049ea844f7dd to your computer and use it in GitHub Desktop.
GoComfy bot
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