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

This commit is contained in:
jude committed 2021-01-17 00:39:48 +00:00
1 parent f80c8cba50
commit 43ba899c7a
7 files changed
+52 -39

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@ lazy_static! {
.unwrap();
pub static ref REGEX_NATURAL_COMMAND: Regex = Regex::new(
r#"(?P<time>.*?) (?:send|say) (?P<msg>.*?)(?: every(?!.*every) (?P<interval>.*?)(?: (?:until|for) (?P<expires>.*?))?)?(?: to (?P<mentions>((?:<@\d+>)|(?:<@!\d+>)|(?:<#\d+>)|(?:\s+))+))?$"#
r#"(?P<time>.*?) (?:send|say) (?P<msg>.*?)(?: every (?P<interval>.*?)(?: (?:until|for) (?P<expires>.*?))?)?(?: to (?P<mentions>((?:<@\d+>)|(?:<@!\d+>)|(?:<#\d+>)|(?:\s+))+))?$"#
)
.unwrap();