Skip to content

[Feature Request] /autoclear (Premium Feature) #28

Open
@JH220

Description

With the Autoclear command you should be able to set up a channel in which messages are automatically deleted after a certain time.
The following exampels are the individual subcommands of the Autoclear command. The first three commands can only be executed by administrators (users with Manage Messages or Manage Server rights). You can set up a channel with a certain duration, which can be set between 0 and 120 seconds, and a mode in which you can switch between all messages, messages from bots, messages from users, messages with links or messages without links.

Usage Examples

/autoclear setup duration:3 mode:all
/autoclear modify duration:3 mode:bot
/autoclear remove
/autoclear contribute

Possible implementation

The following example is from the old version of the ClearChat bot.
An AutoClear command was already implemented there, but was not finished writing it and thus was never functional.
Serves as an overview of the possible modes and the command description. Implementation is done via subcommands and not via options like in the example.
In addition, the implementation of the delete process is not implemented in the example. Here the users who use the contribute subcommand contribute their Vote-Points, the points someone gets when voting for the bot (#27), to the channel. With these points a limited amount of messages can be deleted.

https://github.com/JH220/discord-clearchatbot/blob/0920f65e968ccebd2bc1034c1975313b488f83dc/autoclear/autoclear.js#L5-L16

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions