/********************************************************************
Poe front‑end does not reliably surface the video URL when the
request is streamed. The original script used `stream: true`,
so the bot never got a usable URL.
<video> tags. To show a video you have to send it as a *file attachment* in a `text`
event (`attachments: [{url,…}]`). The old code only sent a
markdown string, which the UI stripped out.
baseURL caused an occasional connection error – it has been removed.
and better logging for debugging.
a simple poe bot
things to note: