Skip to content

Commit

Permalink
voice state logging
Browse files Browse the repository at this point in the history
  • Loading branch information
cycle-five committed Jun 13, 2023
1 parent e1d44bc commit f432a93
Show file tree
Hide file tree
Showing 6 changed files with 264 additions and 26 deletions.
142 changes: 125 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ url = "2.3.1"
serde = "1.0.152"
tracing = "0.1.37"
tracing-subscriber = "0.3.17"
sys-info = "0.9.1"
chrono = "0.4.26"

[dependencies.songbird]
version = "0.3.2"
Expand Down
4 changes: 3 additions & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ impl Client {
let gateway_intents = GatewayIntents::non_privileged();

let client = serenity::Client::builder(token, gateway_intents)
.event_handler(SerenityHandler)
.event_handler(SerenityHandler {
is_loop_running: false.into(),
})
.application_id(application_id)
.register_songbird()
.await?;
Expand Down
2 changes: 0 additions & 2 deletions src/commands/grab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@ pub async fn grab(
// let track = track_handle.get_info().await.unwrap();
let embed = create_now_playing_embed(&track_handle).await;
create_embed_response(&ctx.http, interaction, embed).await?;
//return Ok(());
}
None => {
channel
.say(&ctx.http, "Nothing playing!")
.await
.expect("Error sending message");
//return Ok(());
}
}

Expand Down
Loading

0 comments on commit f432a93

Please sign in to comment.