diff --git a/index.mjs b/index.mjs index 349259d..fd676d5 100644 --- a/index.mjs +++ b/index.mjs @@ -77,7 +77,11 @@ async function cmd_quote(room_id, event) { throw new Error( `Failed to POST the image. Response code: ${r.status}`, ); - + await client.replyText( + room_id, + event, + `An error occured: HTTP status ${r.status}`, + ); axios.get(`${config.imag}/api/latest`).then(async (r) => { await client.replyText( room_id,