mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 06:01:39 +01:00
add fail sound alerts
This commit is contained in:
@@ -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`
|
||||
|
||||
17
src/pointRedeems/sfxFail.ts
Normal file
17
src/pointRedeems/sfxFail.ts
Normal 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",
|
||||
}),
|
||||
});
|
||||
@@ -25,7 +25,9 @@ export type soundAlerts =
|
||||
| "mrockmadhouse"
|
||||
| "eddiescream"
|
||||
| "ripbozo"
|
||||
| "factorioalert";
|
||||
| "factorioalert"
|
||||
| "fail1"
|
||||
| "fail2";
|
||||
|
||||
export type soundAlert = alertBase<"sound"> & {
|
||||
sound: soundAlerts;
|
||||
|
||||
BIN
src/web/alerts/www/assets/fail1.ogg
Normal file
BIN
src/web/alerts/www/assets/fail1.ogg
Normal file
Binary file not shown.
BIN
src/web/alerts/www/assets/fail2.ogg
Normal file
BIN
src/web/alerts/www/assets/fail2.ogg
Normal file
Binary file not shown.
Reference in New Issue
Block a user