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

Added "add_user" and "remove_user" commands #5

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

deejaypro
Copy link

  • Added "add_user" function
  • Added "remove_user" function

Added a regex match to "add_user", because it is only allowed to add email addresses to the list.

I needed those functions for my project and thought i might aswell create a pull request.

sebastian and others added 2 commits March 13, 2020 22:37
- Added ability to delete Message from the Bot after x seconds
- Added function to delete Message by MessageID
@deejaypro
Copy link
Author

I also added the ability to delete messages with a function.
And i also added a function to remove the Message the bot sent after a specific amount of time. This helps with the clutter a bot can produce with the output

@deejaypro
Copy link
Author

One restriction is, that it depends on the reply and the messageId from that reply within "process_incoming_message". This means that cards won't apply to this since it is handled by another function within the users code. So Cards need to call "async_deletion_start" with its parameters to deleted after a specific amount of time.

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.

1 participant