Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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