From e9799560e033c3de59a99946ad3811dff47c8819 Mon Sep 17 00:00:00 2001 From: Jokler Date: Mon, 14 May 2018 20:46:59 +0200 Subject: 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. --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main.rs') 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) => { -- cgit v1.2.3-70-g09d2