Index: src/main.rs ================================================================== --- src/main.rs +++ src/main.rs @@ -18,11 +18,11 @@ use tokio_util::sync::CancellationToken; mod dice; mod game; mod rps; -//mod spoof; +mod spoof; /// Admin account. It can send administrative commands. const ADMIN: &str = "modulux@node.isonomia.net"; /// Quit command. @@ -58,19 +58,19 @@ let token = CancellationToken::new(); let token2 = token.clone(); // This channel sends events from the fedi API and game events to the main event loop. let (cs, mut cr) = mpsc::unbounded_channel(); - // let spoof = spoof::Spoof::new(cs.clone(), token.clone()); + let spoof = spoof::Spoof::new(cs.clone(), token.clone()); let dice = dice::Dice::new(cs.clone(), token.clone()); // g is a vector of games. let mut g: Vec> = vec![Box::new(rps::Rps::new(cs.clone(), token.clone()))]; // We add Rock Paper Scissors.. // If you write another game you need to create a file, use mod, and add it like this. - // g.push(Box::new(spoof)); + g.push(Box::new(spoof)); g.push(Box::new(dice)); let web_client = ClientBuilder::new() .user_agent("Werewolf 0.1") .build()