added additional soundbytes

This commit is contained in:
Andy Killorin 2024-12-09 17:02:55 -05:00
parent 2a8dfcee67
commit 0dbfd665f2
Signed by: ank
GPG key ID: B6241CA3B552BCA4

View file

@ -78,6 +78,7 @@ async fn main() -> Result<()>{
.route("/admin", get(control))
.route("/phil", get(phil))
.route("/recent", get(recent_badge))
.route("/setLast", post(set_last))
.route("/play", post(play))
.route("/openDoor", post(open_door))
.route("/open", get(open_door))
@ -213,16 +214,26 @@ async fn soundboard() -> Html<String> {
for (name, sound) in [
("I'm John the Fish!", "b1"),
("Sup", "a19"),
("Howdy Partner!", "a8"),
("GETOUT", "d4"),
("suspiciougs", "d5"),
("<i>foghorn</i>", "d7"),
("siren", "d6"),
("you don't live here", "d8"),
("piss off", "d10"),
("ahwableda", "d1"),
("wort", "wort"),
] {
page.push_str(&format!(r#"
<form target="output" style="display:inline; margin-right:10px; " action="setLast" method="post" id="myForm">
<form target="output" style="display:inline; margin-right:10px; " action="play" method="post" id="myForm">
<button style="font-size:40px;" type="submit" name="name" value="{sound}" target="output">{name}</button>
</form>
"#));
}
page.push_str(&format!(r#"
<form target="output" style="margin-top:10px;" action="setLast" method="post" id="myForm">
<form target="output" style="margin-top:10px;" action="play" method="post" id="myForm">
<input style="font-size:40px;" name="name" placeholder="other" "type="text"></input>
<button style="font-size:40px;" type="submit" target="output">other</button>
</form>