summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJokler <jokler.contact@gmail.com>2017-10-10 02:25:00 +0200
committerJokler <jokler.contact@gmail.com>2017-10-11 15:41:32 +0200
commit32021829a5b3ea2169f006879d52bdd2232b1030 (patch)
tree23e06943db76482531ee825dc92495907f2e3d21
parent4d2744f4e3de09f78d807800b830d3cf6e4e0729 (diff)
downloadfrippy-32021829a5b3ea2169f006879d52bdd2232b1030.tar.gz
frippy-32021829a5b3ea2169f006879d52bdd2232b1030.zip
Add documentation to the public parts
-rw-r--r--src/lib.rs15
1 files changed, 15 insertions, 0 deletions
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();