mirror of
https://gitlab.com/qwerinope/qweribot.git
synced 2026-02-04 12:26:57 +01:00
add factorio destruction sound alert, add command and cheer parser tests
This commit is contained in:
17
src/pointRedeems/sfxFactorioAlert.ts
Normal file
17
src/pointRedeems/sfxFactorioAlert.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import PointRedeem from "pointRedeems";
|
||||
import { playAlert } from "web/alerts/serverFunctions";
|
||||
|
||||
export default new PointRedeem({
|
||||
name: "sfxFactorioAlert",
|
||||
title: "Factorio Building Destroyed",
|
||||
cost: 100,
|
||||
color: "#A020F0",
|
||||
prompt: 'Play the Factorio "Building Destroyed" sound effect',
|
||||
sfxredeem: true,
|
||||
execution: async (msg) =>
|
||||
await playAlert({
|
||||
name: "sound",
|
||||
user: msg.userDisplayName,
|
||||
sound: "factorioalert",
|
||||
}),
|
||||
});
|
||||
Reference in New Issue
Block a user