use hookburn::{GenericMessage, Hookburn, ServiceConfig};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let url =
std::env::var("DISCORD_WEBHOOK_URL").expect("Set DISCORD_WEBHOOK_URL to your webhook URL");
let hookburn = Hookburn::new();
let config = ServiceConfig::new(url).with_timeout(std::time::Duration::from_secs(30));
let sender = hookburn.create_sender("discord", config)?;
let message = GenericMessage::new("Hello from Hookburn! 👋").with_username("hookburn");
sender.send(&message).await?;
println!("✅ Message sent to Discord!");
Ok(())
}