Skip to content
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

[Enhancement:] Condition check before message check #553

Open
davidhozic opened this issue Feb 8, 2024 · 0 comments
Open

[Enhancement:] Condition check before message check #553

davidhozic opened this issue Feb 8, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@davidhozic
Copy link
Owner

Summary

Add a condition before message send that needs to be fulfilled for the message to be sent.
E. g., Last message in the channel must not be the bot's own message.

Basic Example

# "other" means the last message must be some other user's.
TextMESSAGE(..., constraints=[LastMessageConstraint("other")])

# "same" means the last message must be the same message.
TextMESSAGE(..., constraints=[LastMessageConstraint("same")])

# "own" means the last message must be owned by the bot.
# It can also be authored by the bot as long as it is not the same message.
TextMESSAGE(..., constraints=[LastMessageConstraint("own")])

Unresolved questions

No response

@davidhozic davidhozic added the enhancement New feature or request label Feb 8, 2024
@davidhozic davidhozic self-assigned this Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant