From 2a637ee9c9571cdca824767f81e7cff9c1255070 Mon Sep 17 00:00:00 2001 From: jude Date: Sat, 7 Nov 2020 00:44:36 +0000 Subject: [PATCH] added a tolerance to the natural processor so that 'now' works again --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/commands/reminder_cmds.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 682e928..38caeab 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1175,7 +1175,7 @@ dependencies = [ [[package]] name = "reminder_rs" -version = "1.1.9" +version = "1.1.10" dependencies = [ "Inflector", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index 5b59538..3cc297e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "reminder_rs" -version = "1.1.9" +version = "1.1.10" authors = ["jellywx "] edition = "2018" diff --git a/src/commands/reminder_cmds.rs b/src/commands/reminder_cmds.rs index c013faf..7959720 100644 --- a/src/commands/reminder_cmds.rs +++ b/src/commands/reminder_cmds.rs @@ -1311,7 +1311,7 @@ async fn create_reminder, S: ToString + Type + Encode= unix_time { + if time >= unix_time - 10 { if time > unix_time + *MAX_TIME { Err(ReminderError::LongTime) } else {