Crate mrsbfh

Source
Expand description

githubcrates-iodocs-rs


§MRSBFH - Matrix-Rust-SDK-Bot-Framework-Helper

mrsbfh is a collection of utilities to make performing certain tasks in command bots with matrix easier.

§Features

  • Macro for simple autojoin functionality
  • Macros for pretty defining of commands
  • Utils for a simple Config
  • Utils for restoring and saving matrix sessions

§Examples

For examples please have a look at the example-bot or take a look in the individual modules.

Re-exports§

pub use serde_yaml;
pub use tokio;
pub use tracing;
pub use url;
pub use pulldown_cmark;

Modules§

commands
Helpers to construct Commands
config
Helpers to construct a Config
errors
Errors that the helpers can return
sync
Helpers for the sync process
utils
Various small Utils

Traits§

MatrixMessageExt
An extension to simply do notices

Type Aliases§

Sender
A wrapper type for the tokio sender channel with AnyMessageEventContent as content needed in multiple places