matrix-google-calendar

Bot to manage meetings, pushrules, matrix status as well as showing daily agenda and allowing to shedule stuff.
git clone git://archive.git.mtrnord.blog/MTRNord/matrix-google-calendar.git
Log | Files | Refs

mod.rs (488B)


      1 use std::borrow::Cow;
      2 
      3 use crate::config::Config;
      4 use crate::errors::Error;
      5 use crate::google_calendar::login;
      6 use mrsbfh::commands::command_generate;
      7 
      8 pub mod calendars;
      9 pub mod events;
     10 
     11 #[command_generate(
     12     bot_name = "Calendar",
     13     description = "This bot helps connecting you to the calendar"
     14 )]
     15 enum Commands {
     16     Calendars,
     17     Events,
     18 }
     19 
     20 async fn do_login(sender: Cow<'_, str>, tx: mrsbfh::Sender) -> Result<(), Error> {
     21     login(sender.to_string(), tx).await?;
     22     Ok(())
     23 }