made up for the missing forward check

This commit is contained in:
2021-01-18 19:32:19 +00:00
parent 43ba899c7a
commit 88976dc244
2 changed files with 57 additions and 29 deletions

View File

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