Skip to content

add join message with venue indication#30

Open
orenherman wants to merge 4 commits intooriser:mainfrom
orenherman:main
Open

add join message with venue indication#30
orenherman wants to merge 4 commits intooriser:mainfrom
orenherman:main

Conversation

@orenherman
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Owner

@oriser oriser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@orenherman, great addition, it should solve the issue that Wolt introduced with the preview URL on Slack (the restaurant name does not appear in the preview anymore).
Thanks! See small comment :)

Comment on lines +72 to +80
shouldHandleOrder := h.shouldHandleOrder()
if !shouldHandleOrder {
_, err := h.informEvent(req.Channel, "It's too late for me... I won't track prices for this order :sleeping:", "", req.MessageID)
if err != nil {
return "", errWontJoin
}

return "", errNotInTime
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pay attention in the original function, I don't exit immediately in case shouldHandleOrder is false. The reason is that I still want to monitor the order status and the venue availability even if prices should not be tracked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants