aboutsummaryrefslogtreecommitdiffstats
path: root/bin/main.rs
diff options
context:
space:
mode:
authorJokler <jokler.contact@gmail.com>2017-10-29 17:09:04 +0100
committerJokler <jokler.contact@gmail.com>2017-12-24 00:21:43 +0100
commitf3d679da59a64711ef96042668b26dffd1e662d5 (patch)
tree1d24afeb7ab6a364b433e30bb23f821d19ccf90d /bin/main.rs
parentaa2e6dc0103c303aac0dd688d90c8547b22f8a47 (diff)
downloadfrippy-f3d679da59a64711ef96042668b26dffd1e662d5.tar.gz
frippy-f3d679da59a64711ef96042668b26dffd1e662d5.zip
Add Database trait to be used by the Factoids plugin
Diffstat (limited to 'bin/main.rs')
-rw-r--r--bin/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/main.rs b/bin/main.rs
index e8cf790..1597a70 100644
--- a/bin/main.rs
+++ b/bin/main.rs
@@ -7,6 +7,8 @@ extern crate futures;
#[macro_use]
extern crate log;
+use std::collections::HashMap;
+
use log::{LogRecord, LogLevel, LogLevelFilter, LogMetadata};
use tokio_core::reactor::Core;
@@ -95,7 +97,7 @@ fn main() {
bot.add_plugin(plugins::Emoji::new());
bot.add_plugin(plugins::Currency::new());
bot.add_plugin(plugins::KeepNick::new());
- bot.add_plugin(plugins::Factoids::new());
+ bot.add_plugin(plugins::Factoids::new(HashMap::new()));
if let Some(disabled_plugins) = disabled_plugins {
for name in disabled_plugins {