added purge command to delete messages via bulk delete

adapted api of status message service
added concept of self destruct command results, these will cause the command message to be deleted
This commit is contained in:
Sheldan
2020-06-03 19:22:31 +02:00
parent 072072dffc
commit 1091e66013
23 changed files with 361 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
Deletes the last n messages in the channel. The messages are allowed to be at most 2 weeks old.
If a member is provided as a parameter, only messages by this member are deleted, but at most n messages are considered.
For example, if you execute the command with 200 messages and specify member User#1234, and User#1234 does not have any messages
in the last 200 message, no message will be deleted.
While the command is going on a status message indicating how many messages are currently being deleted is shown.
If messages older than two weeks are found, the command will stop and post an error message.

View File

@@ -0,0 +1 @@
${currentlyDeleted} out of ${totalToDelete} messages deleted.