userinfo: rewrap in try

This commit is contained in:
Cynthia Foxwell 2025-07-18 23:46:50 -06:00
parent 0e2ed94245
commit 2cf8260a9c
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -575,12 +575,12 @@ userinfo.callback = async function (msg, line) {
}
if (!member && id !== (msg.author?.id ?? msg.user?.id)) {
//try {
try {
const clip = {
is_clip: true,
clip_created_at: new Date().toISOString(),
clip_participant_ids: [id],
application: hf.bot.application?.id,
application_id: hf.bot.application?.id,
};
const video = await readFile(require.resolve("#root/data/clip.mp4"));
@ -605,9 +605,9 @@ userinfo.callback = async function (msg, line) {
is_thumbnail: true,
...clip,
});
//} catch {
} catch {
// noop
//}
}
}
return {