Remove dead ding

This commit is contained in:
2023-03-13 18:50:49 -04:00
parent c4b01bf78a
commit 95806edca6

View File

@@ -110,17 +110,6 @@ impl EventHandler for Receiver {
ConnectData { channel_id, ..}
) => {
println!("VoiceDriver is connected.");
match channel_id {
Some(chan) => {
let ding_src =
std::env::var("DING_SOUND").expect("DING not found in DING_SOUND");
let ding = ffmpeg(ding_src).await.expect("no ding.");
let (audio, handle) = create_player(ding);
let mut call = self.call.lock().await;
call.play(audio);
},
None => {}
}
},
_ => {
// We won't be registering this struct for any more event classes.