Skip to content

Commit

Permalink
Update bot to play Silent Night when paused (Christmas edition!)
Browse files Browse the repository at this point in the history
  • Loading branch information
cannawen committed Dec 6, 2024
1 parent 4f4466b commit fa9dc0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file added resources/audio/silent-night.mp3
Binary file not shown.
6 changes: 3 additions & 3 deletions src/assistants/pause.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ import topics from "../topics";
export const configInfo = new ConfigInfo(
rules.assistant.pause,
"Pause",
"Plays Jeopardy music while paused",
"Plays music while paused",
EffectConfig.PUBLIC_INTERRUPTING
);

export default configurable(
configInfo.ruleIndentifier,
inGame(
new Rule({
label: "play jepoardy when paused",
label: "play music when paused",
trigger: [topics.paused],
then: ([paused]) => {
if (paused) {
return new Fact(
topics.configurableEffect,
"resources/audio/jeopardy.mp3"
"resources/audio/silent-night.mp3"
);
} else {
return new Fact(topics.stopAudio, true);
Expand Down

0 comments on commit fa9dc0a

Please sign in to comment.