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

Add 'channels' option to /tracking add #236

Merged
merged 7 commits into from
Dec 15, 2024

Conversation

FloatingMilkshake
Copy link
Collaborator

Closes #216. Adds a new channels option to the /tracking add command. This allows moderators to filter tracking by channel, so that only messages from the user that are sent in the specified channels will be tracked.

If a user is currently being tracked, /track add will update their tracking if you have changed the list of channels. Otherwise, it will throw an error that the user is already being tracked.

Channels can be IDs and/or mentions, and can be separated by spaces and/or commas. For example, all of the following are valid:

  • #general-chat,#lounge
  • #general-chat, #lounge
  • #general-chat #lounge
  • #general-chat,885928971068387353
  • #general-chat, 885928971068387353
  • #general-chat 885928971068387353
  • 885928971068387352 885928971068387353

Events/MessageEvent.cs Outdated Show resolved Hide resolved
@FloatingMilkshake FloatingMilkshake merged commit 57e090b into main Dec 15, 2024
2 checks passed
@FloatingMilkshake FloatingMilkshake deleted the floatingmilkshake/track-add-channel-option branch December 15, 2024 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Todo: Option to limit /tracking add to channel(s)
2 participants