summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-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();