Makomo/src/main.rs

20 lines
335 B
Rust
Raw Permalink Normal View History

2019-10-21 19:56:27 +00:00
#![allow(unused_must_use)]
mod config;
mod makomo;
mod handler;
mod modules;
use config::Config;
use makomo::init_client;
2019-10-21 18:49:28 +00:00
fn main() {
2019-10-21 19:56:27 +00:00
let conf: Config = Config::new("conf.json").unwrap();
let mut client = init_client(conf);
if let Err(why) = client.start() {
println!("Error starting client. {}", why)
}
2019-10-21 18:49:28 +00:00
}