aboutsummaryrefslogtreecommitdiff
path: root/src/hooks/intensify.rs
blob: 4c6359839904dbd45cf76b73acd45f013bb3964e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use anyhow::{Result, Context};
use irc::client::prelude::*;
use macros::privmsg;

pub fn intensify(bot: &crate::Bot, msg: Message) -> Result<()> {
    privmsg!(msg, {
        let mut chars = text.chars();
        chars.next();
        chars.next_back();
        let content = chars.as_str();

        bot.send_privmsg(
            msg.response_target().context("failed to get response target")?,
            format!("\x02\x0304[\x1d{} INTENSIFIES\x1d]\x03\x0F", content.to_uppercase()).as_str(),
        )?;
    })
}
'deletions'>-1/+1 2021-06-05fix tanka dependency pathMax Audron-8/+8 2021-06-05switch to https url for tanka util libMax Audron-2/+2 2021-06-05bump version to 1.0.2Max Audron-2/+2 2021-06-05add tanka ci configurationMax Audron-1/+1 2021-06-05ready tanka deploy for CIMax Audron-32/+69 2021-06-05remove tanka vendoringMax Audron-27651/+0 2021-05-26Release 1.0.1Max Audron-3/+3 2021-05-26fix log breaking once buffer fullMax Audron-2/+33 the log_msg function was poping the newest message and replacing it with the newest message, it should be poping the oldest messages. 2021-05-16add deployment stuffMax Audron-6/+27786 2021-05-15add container buildMax Audron-2/+35