mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 00:51:37 +01:00
add fail sound alerts
This commit is contained in:
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