diff options
| author | Jokler <jokler.contact@gmail.com> | 2017-10-10 02:25:00 +0200 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2017-10-11 15:41:32 +0200 |
| commit | 32021829a5b3ea2169f006879d52bdd2232b1030 (patch) | |
| tree | 23e06943db76482531ee825dc92495907f2e3d21 | |
| parent | 4d2744f4e3de09f78d807800b830d3cf6e4e0729 (diff) | |
| download | frippy-32021829a5b3ea2169f006879d52bdd2232b1030.tar.gz frippy-32021829a5b3ea2169f006879d52bdd2232b1030.zip | |
Add documentation to the public parts
| -rw-r--r-- | src/lib.rs | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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(); |
