Added .banprune command which sets how many days worth of messages will be pruned when bot (soft)bans a person either through a command or another punishment feature. Also updated .next usage string.

This commit is contained in:
Kwoth
2022-08-31 17:47:19 +02:00
parent cd6fe46c2b
commit 59a1e56dad
17 changed files with 10258 additions and 13 deletions

View File

@@ -963,6 +963,8 @@ banmessagetest:
- banmsgtest
banmsgreset:
- banmsgreset
banprune:
- banprune
timeout:
- timeout
wait:

View File

@@ -789,10 +789,9 @@ linux:
args:
- "Spyware Windows"
next:
desc: "Goes to the next song in the queue. You have to be in the same voice channel as the bot. You can skip multiple songs, but in that case songs will not be requeued if {0}rcs or {0}rpl is enabled."
desc: "Goes to the next song in the queue. You have to be in the same voice channel as the bot"
args:
- ""
- "5"
play:
desc: "If no parameters are specified, acts as `{0}next 1` command. If you specify a song number, it will jump to that song. If you specify a search query, acts as a `{0}q` command"
args:
@@ -1681,6 +1680,13 @@ banmsgreset:
desc: "Resets ban message to default. If you want to completely disable ban messages, use `{0}banmsg -`"
args:
- ""
banprune:
desc: |-
Sets how many days of messages will be deleted when a user is banned.
Only works if the user is banned via the .ban command or punishment.
Allowed values: 0 - 7
args:
- "3"
wait:
desc: "Used only as a startup command. Waits a certain number of miliseconds before continuing the execution of the following startup commands."
args:

View File

@@ -28,6 +28,8 @@
"banmsg_default": "No ban message set. Default behavior will be used.",
"banned_pl": "banned",
"banned_user": "User Banned",
"ban_prune_disabled": "Banned user's messages will no longer be deleted.",
"ban_prune": "Bot will prune up to {0} day(s) worth of messages from banned user.",
"timeoutdm": "You have been timed out in {0} server.\nReason: {1}",
"timedout_user": "User Timed Out",
"remove_roles_pl": "have had their roles removed",