1use anyhow::Result;
2use filthy_rich::{Activity, DiscordIPCRunner};
3
4#[tokio::main]
5async fn main() -> Result<()> {
6 let mut runner = DiscordIPCRunner::new("1463450870480900160")
7 .on_ready(|data| println!("Connected to user: {}", data.user.username));
8
9 let client = runner.run(true).await?;
10
11 let activity = Activity::new()
12 .details("this runs forever")
13 .large_image("game_icon", Some("Playing a game"))
14 .small_image("status", Some("Online"))
15 .build();
16
17 client.set_activity(activity).await?;
18 runner.wait().await?;
19
20 Ok(())
21}