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

Delete message on expiration #2

Open
PradyumnaKrishna opened this issue Feb 16, 2023 · 0 comments
Open

Delete message on expiration #2

PradyumnaKrishna opened this issue Feb 16, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@PradyumnaKrishna
Copy link
Member

Looking to add a feature that deletes a message after the given time.
A slash command in the discord bot with expire or tagged message with expire field can be used.

The slash command can have fields:

  • expire message:TEXT(required) on:DATE
  • expire message:TEXT(required) after:INT type:OPTION("DAY", "WEEK", "MONTH")

or see if how can tagging be utilised with this expire feature, example:
Maybe: @<bot-name> expire 3 days

How to build this

  1. A function with expire_message need to be created that deletes the message with provided _id.
  2. Then the message deletion can be scheduled using apscheduler api.
  3. Create a interface for the users either slash_command or tagging.
@PradyumnaKrishna PradyumnaKrishna added the enhancement New feature or request label Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant