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

events.rs (592B)


      1 use crate::config::Config;
      2 use crate::errors::Error;
      3 use matrix_sdk::identifiers::RoomId;
      4 use matrix_sdk::Client;
      5 use mrsbfh::commands::command;
      6 
      7 #[command(help = "`!events` - Displays all events you have.")]
      8 pub async fn events<'a>(
      9     _client: Client,
     10     tx: mrsbfh::Sender,
     11     _config: Config<'a>,
     12     sender: String,
     13     _room_id: RoomId,
     14     mut _args: Vec<&str>,
     15 ) -> Result<(), Error>
     16 where
     17     Config<'a>: mrsbfh::config::Loader + Clone,
     18 {
     19     // Required in case there are new things to request permissions for
     20     super::do_login(sender.clone().into(), tx).await?;
     21 
     22     Ok(())
     23 }