Worker needed for robot.txt value

Any idea of how to turn this template into a robot.txt file. Any help would be appreciated!!!

This is the desired value
User-agent: *
Disallow: /

const html = `

Hello World

This markup was generated by a Cloudflare Worker.

`

async function handleRequest(request) {
return new Response(html, {
headers: {
“content-type”: “text/html;charset=UTF-8”,
},
})
}

addEventListener(“fetch”, event => {
return event.respondWith(handleRequest(event.request))
})

Thanks

Here’s my Robots worker:

async function handleRequest(request) {
  const init = {
    headers: {
      'content-type': 'text/plain;charset=UTF-8',
    },
  }
  return new Response(someHTML, init)
}
addEventListener('fetch', event => {
  return event.respondWith(handleRequest(event.request))
})
const someHTML = `User-agent: *
Disallow: /
`