From 309899168a086de88acf97fd6683387a7af7078c Mon Sep 17 00:00:00 2001 From: Max Audron Date: Fri, 22 Oct 2021 19:08:59 +0200 Subject: write tons of documentation and reorganize some modules --- src/hooks/shifty_eyes.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/hooks/shifty_eyes.rs') diff --git a/src/hooks/shifty_eyes.rs b/src/hooks/shifty_eyes.rs index 4680007..6203075 100644 --- a/src/hooks/shifty_eyes.rs +++ b/src/hooks/shifty_eyes.rs @@ -4,6 +4,7 @@ use irc::client::prelude::*; const EYES: [char; 11] = ['^', 'v', 'V', '>', '<', 'x', 'X', '-', 'o', 'O', '.']; const NOSE: [char; 7] = ['.', '_', '-', ';', '\'', '"', '~']; +/// you are being watched <.< pub fn shifty_eyes(bot: &crate::Bot, msg: Message) -> Result<()> { if let Command::PRIVMSG(_, text) = msg.command.clone() { if text.len() == 3 { @@ -41,6 +42,7 @@ fn invert(input: char) -> Result { '>' => Ok('<'), '<' => Ok('>'), 'x' => Ok('o'), + '.' => Ok('o'), 'X' => Ok('O'), '-' => Ok('o'), 'o' => Ok('-'), -- cgit v1.2.3