diff --git a/README.md b/README.md index f80ff9c..1bc5b26 100644 --- a/README.md +++ b/README.md @@ -227,3 +227,4 @@ NAME|COST|DESCRIPTION|INTERNALNAME `Welcome to the Madhouse`|100|Sound: mrockstar20 says: "Welcome to the Madhouse"|`sfxmrockmadhouse` `Eddie Scream`|100|Sound: Eddie screams|`sfxeddiescream` `Factorio Building Destroyed`|100|Sound: Factorio Building Destroyed alert|`sfxfactorioalert` +`Fail`|100|Sound: Either the sad trumpet or trombone meme sound|`sfxFail` diff --git a/src/pointRedeems/sfxFail.ts b/src/pointRedeems/sfxFail.ts new file mode 100644 index 0000000..e71292d --- /dev/null +++ b/src/pointRedeems/sfxFail.ts @@ -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", + }), +}); diff --git a/src/web/alerts/types.ts b/src/web/alerts/types.ts index cb0f736..17c0719 100644 --- a/src/web/alerts/types.ts +++ b/src/web/alerts/types.ts @@ -25,7 +25,9 @@ export type soundAlerts = | "mrockmadhouse" | "eddiescream" | "ripbozo" - | "factorioalert"; + | "factorioalert" + | "fail1" + | "fail2"; export type soundAlert = alertBase<"sound"> & { sound: soundAlerts; diff --git a/src/web/alerts/www/assets/fail1.ogg b/src/web/alerts/www/assets/fail1.ogg new file mode 100644 index 0000000..533ee84 Binary files /dev/null and b/src/web/alerts/www/assets/fail1.ogg differ diff --git a/src/web/alerts/www/assets/fail2.ogg b/src/web/alerts/www/assets/fail2.ogg new file mode 100644 index 0000000..844ee7b Binary files /dev/null and b/src/web/alerts/www/assets/fail2.ogg differ