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

action_items: add reactions #59

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

action_items: add reactions #59

wants to merge 3 commits into from

Conversation

wizzdom
Copy link
Member

@wizzdom wizzdom commented Nov 23, 2024

Closes #57

  • Adds ✅ reaction to each action item message
  • Once one of the users mentioned in the action item message reacts the message is edited, crossing it out and adding a checkmark

NOTE: I have no idea what I'm doing, there is definitely a better way of doing this, This was put together from boosts.py and stumbling through the hikari docs.
Some sort of hooks here might work, along with a better way of verifying the user and bot ids.
I have not tested role ids and its probably half broken ❤️

@wizzdom wizzdom requested a review from novanai November 23, 2024 05:34

if is_mentioned_user or has_mentioned_role:
# add strikethrough and checkmark
updated_content = f"- ✅ ~~{message.content[1:]}~~"
Copy link
Contributor

Choose a reason for hiding this comment

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

Need to make sure the content has not already been crossed out (in case of multiple people reacting, or double reactions by a single user)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🖐 Assigned
Development

Successfully merging this pull request may close these issues.

Action item improvements
2 participants