add fail sound alerts

This commit is contained in:
2025-12-03 04:31:08 +01:00
parent 87a99331a8
commit fd4afb1530
5 changed files with 21 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
import PointRedeem from "pointRedeems";
import { playAlert } from "web/alerts/serverFunctions";
export default new PointRedeem({
name: "sfxFail",
title: "Fail",
cost: 100,
color: "#A020F0",
prompt: "failure horn or trombone meme sound",
sfxredeem: true,
execution: async (msg) =>
await playAlert({
name: "sound",
user: msg.userDisplayName,
sound: Math.random() > 0.5 ? "fail1" : "fail2",
}),
});

View File

@@ -25,7 +25,9 @@ export type soundAlerts =
| "mrockmadhouse"
| "eddiescream"
| "ripbozo"
| "factorioalert";
| "factorioalert"
| "fail1"
| "fail2";
export type soundAlert = alertBase<"sound"> & {
sound: soundAlerts;

Binary file not shown.

Binary file not shown.