2021-01-29 23:06:59 +01:00
|
|
|
use rhasspy_skill_server::{event_loop, Context};
|
|
|
|
use std::error::Error;
|
2021-01-26 16:50:00 +01:00
|
|
|
|
|
|
|
#[tokio::main]
|
2021-01-29 23:06:59 +01:00
|
|
|
async fn main() -> Result<(), Box<dyn Error + 'static>> {
|
|
|
|
dotenv::dotenv().ok();
|
2021-01-26 16:50:00 +01:00
|
|
|
|
2021-01-29 23:06:59 +01:00
|
|
|
let context = Context::new()?;
|
|
|
|
event_loop(context).await?;
|
2021-01-26 16:50:00 +01:00
|
|
|
|
2021-01-29 23:06:59 +01:00
|
|
|
Ok(())
|
2021-01-26 16:50:00 +01:00
|
|
|
}
|