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 !count command #102

Closed
wants to merge 1 commit into from
Closed

Add !count command #102

wants to merge 1 commit into from

Conversation

Cephian
Copy link
Collaborator

@Cephian Cephian commented Mar 30, 2022

Closes #100. Adds a command !count <channel_mention> to count number of messages in the mentioned channel. If there is no mention, it counts messages in the current channel.

To avoid code duplication, some code from !list used to extract a mentioned channel from a command was factored out into a new method extract_target_channel(message: Message)

@Cephian Cephian requested a review from anoadragon453 March 30, 2022 22:48
@Cephian Cephian closed this May 9, 2022
@Cephian Cephian deleted the count branch June 6, 2024 14:25
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.

Add a command to count # of messages in a channel
1 participant