Task: Mojang Name Availability Checker

n8n workflow JSON:
{"id":4,"name":"Mojang Name Availability Checker","nodes":[{"name":"Cron","type":"n8n-nodes-base.cron","position":[190,270],"parameters":{"triggerTimes":{"item":[{"mode":"everyMinute"}]}},"typeVersion":1},{"name":"IF","type":"n8n-nodes-base.if","position":[710,270],"parameters":{"conditions":{"number":[],"boolean":[{"value1":"={{$json[\"notify\"]}}","value2":true}]}},"typeVersion":1},{"name":"Function","type":"n8n-nodes-base.function","position":[540,270],"parameters":{"functionCode":"const staticData = getWorkflowStaticData('global');\n\nconst oldCode = staticData.statusCode || 0;\nconst newCode = items[0].json.statusCode;\nconst name = $node[\"Check Name Availability\"].parameter[\"url\"].split('/').splice(-1)[0];\n\nlet notify = false;\n\nif (oldCode != newCode) {\n  notify = true;\n  staticData.statusCode = newCode;\n}\n\nlet message = `Name \\`${name}\\` is now ${newCode === 204 ? '' : 'un'}available.`;\n\nreturn [{json: {notify: notify, message: message, oldCode: oldCode, newCode: newCode}}];\n"},"typeVersion":1},{"name":"Check Name Availability","type":"n8n-nodes-base.httpRequest","position":[370,270],"parameters":{"url":"https://api.mojang.com/users/profiles/minecraft/<name>","options":{"fullResponse":true}},"typeVersion":1},{"name":"Send Webhook","type":"n8n-nodes-base.httpRequest","position":[910,270],"parameters":{"url":"","options":{},"requestMethod":"POST","jsonParameters":true,"bodyParametersJson":"={\"content\": \"{{$json[\"message\"]}}\"}"},"typeVersion":1}],"active":false,"settings":{},"connections":{"IF":{"main":[[{"node":"Send Webhook","type":"main","index":0}]]},"Cron":{"main":[[{"node":"Check Name Availability","type":"main","index":0}]]},"Function":{"main":[[{"node":"IF","type":"main","index":0}]]},"Check Name Availability":{"main":[[{"node":"Function","type":"main","index":0}]]}}}