summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorJokler <jokler.contact@gmail.com>2018-05-14 20:46:59 +0200
committerJokler <jokler.contact@gmail.com>2018-05-14 20:46:59 +0200
commite9799560e033c3de59a99946ad3811dff47c8819 (patch)
treef2584dd5ef943a6d996007d4f56fae59dbf02594 /src/main.rs
parentbef668bce8dc1022e7dde7b0da65fa64bb472cf4 (diff)
downloadfrippy-e9799560e033c3de59a99946ad3811dff47c8819.tar.gz
frippy-e9799560e033c3de59a99946ad3811dff47c8819.zip
Remind: Add Mysql as a possible database
The bot also responds with the id and time of a reminder after creation to allow the creator to delete them. Furthermore the InvalidCommand message was fixed and the unnecessary dotenv dependency was removed.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 3f56c50..61cc839 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -126,8 +126,7 @@ fn run() -> Result<(), Error> {
let pool = Arc::new(pool);
bot.add_plugin(Factoids::new(pool.clone()));
bot.add_plugin(Tell::new(pool.clone()));
- // TODO Use mysql pool
- bot.add_plugin(Remind::new(HashMap::new()));
+ bot.add_plugin(Remind::new(pool.clone()));
info!("Connected to MySQL server")
}
Err(e) => {