indefinite/indefinite.rs
1use anyhow::Result;
2use filthy_rich::DiscordIPC;
3
4#[tokio::main]
5async fn main() -> Result<()> {
6 let mut client = DiscordIPC::new("1463450870480900160")
7 .on_ready(|| println!("filthy-rich is READY to set activities."));
8
9 client.run(true).await?;
10
11 client
12 .set_activity("this runs forever".to_string(), None)
13 .await?;
14 client.wait().await?;
15
16 Ok(())
17}