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

Limit daily requests for each user per channel #200

Merged
merged 7 commits into from
Jun 12, 2021
Merged

Conversation

chandler05
Copy link
Member

@chandler05 chandler05 commented May 13, 2021

Purpose

Close #166

Approach

Read from internal channels to get the requests that were created less than 24 hours before, limit per channel.

Negative request limits cause no limit for the channel.

Future work

This and the MentionDeleteEventHandler (#201) both read from the user tag, so if it is changed then it will no longer match the user, there needs to be another way around this. I added the functionality to update the user tag and icon whenever a request is updated, but that doesn't entirely fix it.

src/events/request/RequestEventHandler.ts Outdated Show resolved Hide resolved
src/events/request/RequestEventHandler.ts Show resolved Hide resolved
config/template.yml Show resolved Hide resolved
@violine1101 violine1101 merged commit 2416845 into master Jun 12, 2021
@violine1101 violine1101 deleted the request-limit branch June 12, 2021 15:29
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 request limit
3 participants