Add AlbumOfTheDay cog (1001 Albums Generator album of the day, timezone-aware daily post)

This commit is contained in:
2026-10-05 21:01:53 -05:00
parent 55fe064fe8
commit 1e4d64013c
4 changed files with 402 additions and 0 deletions
+40
View File
@@ -11,6 +11,9 @@ Homepage: https://homepage.kingstons-scrapyard.net/
**Deadman**
- [Deadman](#deadman)
**AlbumOfTheDay**
- [AlbumOfTheDay](#albumoftheday)
**AutoRoom**
- [Installation](#installation)
- [AutoRoom](#autoroom)
@@ -83,6 +86,43 @@ When the switch is armed, each listed user is DM'd to confirm they were added. I
---
## AlbumOfTheDay
Posts your [1001 Albums Generator](https://1001albumsgenerator.com) group's album of the day to a Discord channel, with group stats, genres, and streaming links. This is the in-bot equivalent of the album-notifier GitHub Actions project: instead of a cron workflow and a webhook, it runs inside the bot, stores config per server, and schedules the daily post itself.
Install:
```
[p]cog install scrapyard albumoftheday
[p]load albumoftheday
```
Setup (per server):
1. Find your group API URL. Take your group page URL `https://1001albumsgenerator.com/groups/your-slug` and insert `/api/v1` before `/groups`: `https://1001albumsgenerator.com/api/v1/groups/your-slug`
2. Configure:
```
[p]aotd seturl https://1001albumsgenerator.com/api/v1/groups/your-slug
[p]aotd setchannel #album-of-the-day
[p]aotd settime 8 0
```
3. Test immediately with `[p]aotd now`.
**Commands:**
- `[p]aotd now` - post today's album in the current channel (anyone).
- `[p]aotd seturl <url>` - set the group API URL (admin / Manage Server).
- `[p]aotd setchannel [#channel]` - set the daily post channel (defaults to current).
- `[p]aotd settime <hour> [minute]` - daily post time, 24-hour, in the server timezone.
- `[p]aotd settz <IANA name>` - set the timezone (default `America/Chicago`, US Central).
- `[p]aotd settings` - show current config.
- `[p]aotd clear` - clear config and stop daily posting.
The schedule is timezone-aware and defaults to US Central (CST/CDT). A time you set stays fixed in local terms year-round, with daylight saving handled automatically. The daily post is guarded against double-posting within one local day, even across bot restarts.
---
## AutoRoom
Automatic voice channel management. When a member joins an AutoRoom Source (voice channel), a brand new AutoRoom is created that they have control over. Once everyone leaves the AutoRoom, it is automatically deleted.