Skip to content

v0.1.0

Choose a tag to compare

@lighthouse-publisher lighthouse-publisher released this 29 Oct 16:42
· 29 commits to main since this release

v0.1.0 (2026-10-29)

Added

  • Lineup reminders for linked Sleeper leagues, in the league's channels during the NFL regular season: 1 day and 1 hour before the week's first game, and 1 hour before Sunday's first game. Kickoff times come from ESPN's schedule, shown in Eastern time. A reminder that's more than 30 minutes late (after a restart, say) isn't sent. !ff alerts lineups off turns them off.
  • Each command says who may use it (everyone, VIPs, moderators or the channel's owner), and Lys checks it before running the command; !help <command> shows it. A refused command answers "Only moderators can use !autopost." and the like.
  • Cooldowns and caps on slow commands: !gpt runs at most 16 at a time across all channels, with 4 seconds between one person's uses; !catfact and !randomdog at most 16, with no wait between uses; Letterboxd and Sleeper at most 16. Up to 32 commands run at once in all (8 before), so a rush of slow commands never holds up the quick ones. Past a cap, Lys answers "Busy, try again in a moment."; within a cooldown it stays quiet. The channel's owner and moderators skip cooldowns.
  • Messages too long for one Twitch message (a long !gpt answer, say) go out in parts instead of being refused: split at a space, in order, up to 4 parts; anything beyond ends with "…".
  • lys channel prefix <channel> <prefix> changes a channel's prefix from the CLI.
  • lys shell: the CLI's commands one after another, with line editing, history and Tab completion, and the environment in the prompt (lys (prod)>, prod in red). On the server: docker exec -it lys /lys shell, or alias lys='docker exec -it lys /lys shell'.
  • Faster chat where the bot is a moderator, VIP or broadcaster: messages there go out 0.3 seconds apart instead of 1.5. Lys learns the bot's role from the badges on its own messages and remembers it across restarts.
  • One limit for all of the bot's messages across channels, a little under Twitch's (20 per 30 seconds, 100 where the bot is privileged), so busy channels together never get the bot ignored for an hour. When messages have to wait, replies go first, then announcements and reminders, then autoposts. Helix's own rate limit is logged once a minute while Lys sends.

Fixed

  • The Sleeper player catalog (about 15 MB, downloaded after each start and then daily) downloads in the background with 2 minutes to finish, instead of within the command that first needed it. Before, a download slower than 10 seconds failed that !ff roster or !ff whohas, and the next try waited 5 minutes. Commands now wait for the download, and get the day-old catalog while it's refreshed.
  • Looking up who sent a command gives up after 5 seconds, and the command runs without it, so a slow database can't hold up a worker.

Changed

  • !oneup stats <puzzle number> and stats by name use their own indexes instead of reading every game.
  • Built on pgx 5.11 and goose 3.29.
  • In channels where the bot isn't privileged, messages go out 1.1 seconds apart instead of 1.5, as Twitch allows 1 a second there.
  • Channels are joined 8 at a time instead of one by one (9 channels: 0.3 s instead of 1.4 s; 300: 6 s instead of 45 s), and adding or removing a channel no longer holds up the others.
  • Letterboxd: a feed several channels follow is fetched once per round for all of them, an unchanged feed comes back as a short "not modified", and up to 4 feeds are fetched at once, so a round still fits its 25 minutes with many more feeds.
  • The database pool holds up to 12 connections (unless the URL sets pool_max_conns), instead of a number that depended on the server's CPUs.
  • Each command logs how long its reply took, from the chat message to the reply.
  • The bot's Twitch token is refreshed only when it's about to run out (or Twitch refuses it), not on every join and twice at startup; Cove gets the refresh token only when it changed.
  • Slow commands no longer hold up chat: Lys looks at every message as it arrives and only runs the command itself in the background, so a slow !gpt can't delay other commands, puzzle results or the activity autoposts count. When Lys can't keep up, it drops chat messages (and logs how many) rather than falling behind Twitch, which would disconnect it.
  • The bot's owner no longer counts as the owner of other people's channels: !settings prefix set, !ff link league, !ff unlink league and changing !ff alerts are for each channel's owner (autoposts already were). lys channel prefix covers fixes.
  • The !sleeper command and the Sleeper announcements share one Sleeper client, so the 15 MB player catalog is downloaded once a day instead of once each.

Removed

  • Lys no longer copies channel, prefix, game, request and Sleeper changes into the tables the old bot read; it reads and writes only its own. Letterboxd subscriptions are still copied until v0.1.1 drops those tables, so going back to v0.0.0 keeps them.
  • The startup step that linked rows the old bot wrote.
  • LYS_TWITCH_BOT_ID is no longer read: the bot account comes from lys bot authorize.