mirror of
https://github.com/Luzifer/discord-community.git
synced 2024-11-09 15:40:03 +00:00
Add clearchannel module
Signed-off-by: Knut Ahlers <knut@ahlers.me>
parent
6338ce16ff
commit
d2416e6412
1 changed files with 10 additions and 0 deletions
10
Home.md
10
Home.md
|
@ -16,6 +16,16 @@ module_configs:
|
|||
|
||||
# Modules
|
||||
|
||||
## Type: `clearchannel`
|
||||
|
||||
Cleans up old messages from a channel (for example announcement channel) which are older than the retention time
|
||||
|
||||
| Attribute | Req. | Type | Default Value | Description |
|
||||
| --------- | :--: | ---- | ------------- | ----------- |
|
||||
| `discord_channel_id` | ✅ | string | | ID of the Discord channel to clean up |
|
||||
| `retention` | ✅ | duration | | How long to keep messages in this channel |
|
||||
| `cron` | | string | `0 * * * *` | When to execute the cleaner |
|
||||
|
||||
## Type: `liveposting`
|
||||
|
||||
Announces stream live status based on Discord streaming status
|
||||
|
|
Loading…
Reference in a new issue