removed forward check bc it doesnt work. added an environment variable to configure if dm responses should be enabled

This commit is contained in:
2021-01-17 00:39:48 +00:00
parent f80c8cba50
commit 43ba899c7a
7 changed files with 52 additions and 39 deletions

View File

@ -1243,9 +1243,9 @@ async fn natural(ctx: &Context, msg: &Message, args: String) {
let interval = if let Some(interval_crop) = captures.name("interval") {
if subscribed {
natural_parser(interval_crop.as_str(), &user_data.timezone)
.await
.map(|i| i - since_epoch.as_secs() as i64)
humantime::parse_duration(interval_crop.as_str())
.map(|duration| duration.as_secs() as i64)
.ok()
} else {
None
}