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

request: autopurge system #1420

Open
favna opened this issue Dec 4, 2020 · 0 comments
Open

request: autopurge system #1420

favna opened this issue Dec 4, 2020 · 0 comments

Comments

@favna
Copy link
Member

favna commented Dec 4, 2020

Is your feature request related to a problem? Please describe.

There has been a request to add an auto purging system. Basically it would run on a schedule given a channel and a certain amount of messages and everytime the schedule is reached, the given amount of messages are deleted from the given channel.

Describe the solution you'd like

autopurge command that has a setup similar to selfmod mode commands

  • autopurge enable/disablee to enable/disable the system
  • autopurge add <channelname> <inteval> [messageCount:number = 100] [filter:...string] to add a new auto purge rule. Filter is rest string as it should be able to match message content (case insensitive!). messageCount is optional and defaults to 100 messages to scan.
  • autopurge show to show a list of autopurge rules, listed by ID with their channels, a timestamp to the next purge, the messages to be scanned and any filter that would be applied. Probably use RichDisplay here.
  • autopurge remove <id> to remove a specific autopurge rule
  • autopurge reset to remove all autopurge rules

Optional:

  • autopurge edit <id> <channelname> <inteval> [messageCount:number = 100] [filter:...string] to edit an existing autopurge rule. Optional because people can also remove then re-add.

Describe alternatives you've considered

N.A.

Additional context

https://discordapp.com/channels/254360814063058944/382531782387695616/784560386875195463
https://discordapp.com/channels/254360814063058944/382531782387695616/784564902735642644

#140 in #suggestions

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

No branches or pull requests

1 participant