summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJokler <jokler.contact@gmail.com>2018-04-07 18:19:24 +0200
committerJokler <jokler.contact@gmail.com>2018-04-07 18:19:24 +0200
commit5c45046794e3c93f875d69193bb12d6608d45a8c (patch)
treea446511384f7ba7eb0dba2c70970a955cbfe1403 /src/lib.rs
parent4624f7e153769fa97401f5e906c6d17cf1127083 (diff)
downloadfrippy-5c45046794e3c93f875d69193bb12d6608d45a8c.tar.gz
frippy-5c45046794e3c93f875d69193bb12d6608d45a8c.zip
Add usefulness rating function to url titles
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 37f1225..67a99d0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -46,6 +46,7 @@ extern crate lazy_static;
#[macro_use]
extern crate log;
+extern crate antidote;
extern crate chrono;
extern crate circular_queue;
extern crate humantime;
@@ -53,22 +54,21 @@ extern crate irc;
extern crate regex;
extern crate reqwest;
extern crate time;
-extern crate antidote;
+pub mod error;
pub mod plugin;
pub mod plugins;
pub mod utils;
-pub mod error;
use std::collections::HashMap;
use std::fmt;
-use std::thread;
use std::sync::Arc;
+use std::thread;
-pub use irc::client::prelude::*;
-pub use irc::error::IrcError;
use error::*;
use failure::ResultExt;
+pub use irc::client::prelude::*;
+pub use irc::error::IrcError;
use plugin::*;
@@ -80,11 +80,11 @@ pub struct Bot<'a> {
}
impl<'a> Bot<'a> {
- /// Creates a `Bot` without any plugins.
+ /// Creates a `Bot` without any plugins.
/// By itself the bot only responds to a few simple CTCP commands
/// defined per config file.
/// Any other functionality has to be provided by plugins
- /// which need to implement [`Plugin`](plugin/trait.Plugin.html).
+ /// which need to implement [`Plugin`](plugin/trait.Plugin.html).
/// To send commands to a plugin
/// the message has to start with the plugin's name prefixed by `cmd_prefix`.
///