change snacker close delay to be a little longer than sound effect duration

This commit is contained in:
Seth 2025-05-19 21:06:02 -04:00
parent 8d76c55539
commit 21c9acb8f0

View file

@ -16,12 +16,12 @@ interface Options {
* * `bottom-end`: Aligned to the bottom, right * * `bottom-end`: Aligned to the bottom, right
*/ */
placement?: placement?:
| "top" | "top"
| "top-start" | "top-start"
| "top-end" | "top-end"
| "bottom" | "bottom"
| "bottom-start" | "bottom-start"
| "bottom-end"; | "bottom-end";
/** /**
* The text for the action button. * The text for the action button.
*/ */
@ -94,6 +94,7 @@ export const snacker = (opts: Options) => {
closeable: true, closeable: true,
messageLine: 2, messageLine: 2,
queue: "snacker", queue: "snacker",
autoCloseDelay: 1600,
onOpen: () => { onOpen: () => {
new Audio("https://no.ipv4.army/raw/Popcorn.ogg").play(); new Audio("https://no.ipv4.army/raw/Popcorn.ogg").play();
}, },