phoebe/phoebe-main/src/main.rs

24 lines
541 B
Rust

use color_eyre::Result;
use tracing_subscriber::EnvFilter;
use phoebe::service::Service;
#[tokio::main]
async fn main() -> Result<()> {
color_eyre::install()?;
tracing_subscriber::fmt()
.with_target(true)
.with_env_filter(EnvFilter::from_default_env())
.init();
let (tx, rx) = tokio::sync::broadcast::channel(512);
let db = phoebe::open_core_db().await?;
let services: Vec<Box<dyn Service>> = vec![Box::new(
phoebe_discord::setup(db.clone(), tx.clone()).await?,
)];
Ok(())
}