-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bot offers time to book but it's busy #6
Comments
Problem is that in UserFSM.pm INSTRUCTOR rule haven't called DATETIME => {
do => sub { $ctrl->do_datetime(@_); },
rules => [
INSTRUCTOR => sub { $ctrl->datetime_rule_instructor(@_); },
DURATION => sub { $ctrl->datetime_rule_duration(@_); },
CANCEL => sub { $ctrl->datetime_rule_cancel(@_); },
DATETIME_FAILED => 1
],
}, Since in FSA::Rules rules are evaluated in order - problem is that So need to analyse output of sub datetime_rule_instructor {
my ($self, $state, $update) = @_;
FSMUtils::_with_text($update, sub { # preform callback on update text
FSMUtils::_parse_value($state, sub {
$self->{dtf}->parse(shift);
}, shift);
});
}
UPD: In this case we |
Well, seems like I figured it out. |
The text was updated successfully, but these errors were encountered: