diff options
Diffstat (limited to 'src/commands/playback.rs')
| -rw-r--r-- | src/commands/playback.rs | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/commands/playback.rs b/src/commands/playback.rs index 9b74c02..ad24eb3 100644 --- a/src/commands/playback.rs +++ b/src/commands/playback.rs @@ -1,16 +1,11 @@ -use std::sync::Arc; - -use log::{ - debug, - info, - warn, -}; +use grate::tracing; use serenity::prelude::*; use songbird::{ input::YoutubeDl, Call, Songbird, }; +use std::sync::Arc; use crate::{ bot::HttpKey, @@ -38,9 +33,9 @@ pub async fn songbird(ctx: PoiseContext<'_>) -> anyhow::Result<(Arc<Songbird>, A pub async fn _play(ctx: PoiseContext<'_>, url: &url::Url) -> anyhow::Result<()> { use url::Host; - debug!("playing '{}'", url); + tracing::debug!("playing '{}'", url); if !url.scheme().starts_with("http") { - warn!("got bad url argument to play: {}", url); + tracing::warn!("got bad url argument to play: {}", url); util::reply(ctx, "bAD LiNk").await?; return Ok(()); @@ -52,7 +47,7 @@ pub async fn _play(ctx: PoiseContext<'_>, url: &url::Url) -> anyhow::Result<()> }); if host.is_some_and(|h| h.to_lowercase().contains("imgur")) { - info!("detected imgur link"); + tracing::info!("detected imgur link"); if ctx.author().id == 106160362109272064 { util::reply(ctx, "fuck you conway").await?; |
