Add clearchannel module

Signed-off-by: Knut Ahlers <knut@ahlers.me>
Knut Ahlers 2021-07-31 00:54:28 +02:00
parent 6338ce16ff
commit d2416e6412

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