From 32021829a5b3ea2169f006879d52bdd2232b1030 Mon Sep 17 00:00:00 2001 From: Jokler Date: Tue, 10 Oct 2017 02:25:00 +0200 Subject: Add documentation to the public parts --- src/lib.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 82d9d16..5a85db0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,16 @@ #![cfg_attr(feature="clippy", feature(plugin))] #![cfg_attr(feature="clippy", plugin(clippy))] +//! Frippy is an IRC bot that runs plugins on each message +//! received. +//! +//! # Example +//! ```no_run +//! extern crate frippy; +//! +//! frippy::run(); +//! ``` + #[macro_use] extern crate lazy_static; @@ -21,6 +31,11 @@ use irc::error::Error as IrcError; use plugin::Plugin; use plugin::PluginCommand; +/// Runs the bot +/// +/// # Remarks +/// +/// This blocks the current thread while the bot is running pub fn run() { let server = IrcServer::new("config.toml").unwrap(); server.identify().unwrap(); -- cgit v1.2.3-70-g09d2