Macro catinator_macros::privmsg[][src]

privmsg!() { /* proc-macro */ }
Expand description

Match on a privmsg and execute the function block on it

Examples

privmsg!(msg, {
    bot.send_privmsg(
        msg.response_target().unwrap(),
        "bla",
    )?;
})