aboutsummaryrefslogtreecommitdiff
path: root/src/hooks/pet.rs
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2021-10-22 19:08:59 +0200
committerMax Audron <audron@cocaine.farm>2021-10-22 19:09:39 +0200
commit309899168a086de88acf97fd6683387a7af7078c (patch)
tree846075c1e9af0d7139edae5597f1147b851ed2b2 /src/hooks/pet.rs
parentremove wolfram alpha url shortening (diff)
write tons of documentation and reorganize some modules
Diffstat (limited to 'src/hooks/pet.rs')
-rw-r--r--src/hooks/pet.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/hooks/pet.rs b/src/hooks/pet.rs
index 3e2defe..d11f562 100644
--- a/src/hooks/pet.rs
+++ b/src/hooks/pet.rs
@@ -1,5 +1,3 @@
-use std::str;
-
use anyhow::{Context, Result};
use irc::client::prelude::*;
use macros::privmsg;
@@ -15,14 +13,9 @@ const PET_RESPONSE: [&str; 5] = [
"strikes you with it's sharp claws",
];
-/// Pet cat
+/// Pet the cat, get rekt
///
/// Sends some random action when petted.
-///
-/// # See also
-///
-/// - [`Bot::send_action`]
-/// - RESPONSE
pub fn pet(bot: &crate::Bot, msg: Message) -> Result<()> {
privmsg!(msg, {
bot.send_action(