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

New feature for auto assign ranks by the users themselves #68

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

Conversation

Smieszkokoleszko
Copy link
Contributor

Title says everything.

New requirements:

  1. Channel for ranks messages
  2. Rank for users with permissions to create ranks

When added adding new rank message is similar to creating missions. Example command with multiple ranks in one message below:
AF!ranga Title of message ; Description of message; @rank1 @rank2 ; 😘🤓

Bot will create message in pointed channel. When reaction clicked by user rank is added. When clicked again it is removed.

Copy link
Member

@3Mydlo3 3Mydlo3 left a comment

Choose a reason for hiding this comment

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

Some cleanup would be useful as the code is very chaotic.

return;
}

private async Task RemovedReactionToSignUpsChannel(Cacheable<IUserMessage, ulong> message, ISocketMessageChannel channel, SocketReaction reaction, SignupsData signups)
Copy link
Member

Choose a reason for hiding this comment

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

I think RemovedReactionToSignUpsChannel is a bad name pattern. Reactions are added to messages in channels, not to channels. I'd suggest renaming such methods to RemovedReactionInSignupsChannel (notice Signups vs SignUps).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@3Mydlo3 3Mydlo3 added the feature New feature or feature request label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants