Skip to content

Added "add_user" and "remove_user" commands#5

Open
deejaypro wants to merge 5 commits intohpreston:masterfrom
deejaypro:master
Open

Added "add_user" and "remove_user" commands#5
deejaypro wants to merge 5 commits intohpreston:masterfrom
deejaypro:master

Conversation

@deejaypro
Copy link
Copy Markdown

  • 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
Copy Markdown
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
Copy Markdown
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