|
@@ -4,6 +4,7 @@ mod config;
|
|
mod external;
|
|
mod external;
|
|
mod bar;
|
|
mod bar;
|
|
mod store;
|
|
mod store;
|
|
|
|
+mod music;
|
|
|
|
|
|
use comm::{Channel, Message};
|
|
use comm::{Channel, Message};
|
|
use config::Config;
|
|
use config::Config;
|
|
@@ -23,6 +24,7 @@ fn main() {
|
|
let (tx, rx) = mpsc::channel::<Message>();
|
|
let (tx, rx) = mpsc::channel::<Message>();
|
|
make_thread(&tx, &cfg, external::external);
|
|
make_thread(&tx, &cfg, external::external);
|
|
make_thread(&tx, &cfg, sensors::sensors);
|
|
make_thread(&tx, &cfg, sensors::sensors);
|
|
|
|
+ make_thread(&tx, &cfg, music::music);
|
|
|
|
|
|
let mut data = store::Store::new();
|
|
let mut data = store::Store::new();
|
|
|
|
|
|
@@ -35,7 +37,7 @@ fn main() {
|
|
data.get("title"),
|
|
data.get("title"),
|
|
data.get("sensors")
|
|
data.get("sensors")
|
|
));
|
|
));
|
|
- botbar.send(&format!("{}", data.get("cmus")));
|
|
|
|
|
|
+ botbar.send(&format!("{}", data.get("mpd")));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|