diff options
| author | Jokler <jokler.contact@gmail.com> | 2018-05-14 20:46:59 +0200 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2018-05-14 20:46:59 +0200 |
| commit | e9799560e033c3de59a99946ad3811dff47c8819 (patch) | |
| tree | f2584dd5ef943a6d996007d4f56fae59dbf02594 /src/main.rs | |
| parent | bef668bce8dc1022e7dde7b0da65fa64bb472cf4 (diff) | |
| download | frippy-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.rs | 3 |
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) => { |
