blob: 87a4edf848c6b744c992e221102e6a79f5bb9b33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
use anyhow::Result;
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().unwrap(),
format!("\x02\x0304[\x1d{} INTENSIFIES\x1d]\x03\x0F", content.to_uppercase()).as_str(),
)?;
})
}
|