timed/timed.rs
1// SPDX-License-Identifier: MIT
2
3use std::{thread::sleep, time::Duration};
4
5use filthy_rich::ipc::DiscordIPC;
6
7fn main() {
8 let mut client = DiscordIPC::new_from("1463450870480900160").unwrap();
9
10 client.run().unwrap();
11
12 client.set_activity("this runs", "for ten seconds").unwrap();
13 sleep(Duration::from_secs(5));
14 client.set_activity("believe it", "or not").unwrap();
15 sleep(Duration::from_secs(5));
16}