Skip to content

Releases

v0.5.1

Choose a tag to compare

@lighthouse-publisher lighthouse-publisher released this 11 Nov 05:30

v0.5.1 (2026-11-11)

Added

  • lys health checks that the running Lys answers and its chat connections are up, exiting 0 when healthy and 1 otherwise. The container's healthcheck runs it instead of wget.
  • The MIT license.

Changed

  • The weekly Sleeper recap (and !ff recap) is easier to read: results as a scoreboard (@a 162.38–111.32 @b), each highlight with an emoji and a short label (🔥 Top score, 😬 Closest, 💥 Blowout, ⭐ Best player, 🪑 Bench), and items separated by |.
  • The recap's standings list every team, not only the top 3, with each team's record and points scored (🥇 @a 6-3 (1,284)), medals for the top 3. A list too long for one message continues in another, without splitting a team or game.
  • The README describes Lys's features, requirements, setup and every setting.

v0.5.0

Choose a tag to compare

@lighthouse-publisher lighthouse-publisher released this 03 Nov 03:07

v0.5.0 (2026-11-02)

Logging: Lys logs through blackboxlog, and no longer logs chat.

Added

  • LOG_CHAT=true (a plain setting in the compose file's environment, off by default) logs every chat message with its channel, user and text.
  • Each command use is logged once, with the command, channel, outcome (ok, error, timeout, refused, cooling or busy), how long it ran and how long after the message the reply went out. The command's arguments are never logged.

Changed

  • Normal chat messages are no longer logged, unless LOG_CHAT=true.
  • Every log line is a JSON record with a level (ERROR, WARN, INFO or DEBUG), a constant message, a component (router, twitch, chat, eventsub, sleeper, seventv, …) and its details as fields. Failures are ERROR or WARN, where most had no level before. LOG_LEVEL and LOG_FORMAT change the level and format.
  • A command that panics is one ERROR record, with the stack in a field, instead of many lines.
  • A message from Twitch that Lys can't read is logged by its type and length, instead of up to 200 characters of what it said.
  • Twitch's token errors are worded so that log redaction doesn't hide part of them.
  • lys migrate up says which migrations it applied, or that the database is up to date.

v0.4.0

Choose a tag to compare

@lighthouse-publisher lighthouse-publisher released this 30 Oct 04:04

v0.4.0 (2026-10-30)

Added

  • !randomcat links a random cat from cataas.com, a picture or a gif at random: "Here's a random cat. https://cataas.com/cat/…". When cataas.com can't be reached it says so: "Couldn't reach cataas.com, try again in a moment."

v0.3.0

Choose a tag to compare

@lighthouse-publisher lighthouse-publisher released this 30 Oct 02:52

v0.3.0 (2026-10-29)

7TV: the channel's 7TV editors manage its emotes from chat.

Added

  • !7tv manages the channel's active 7TV emote set from chat: add <name or link> [name], remove <emote>, rename <emote> <new name>, undo, sets, set <set>, search <name>, editors, emote <name> and status. Only the streamer and the editors they accepted on 7TV can make changes, each with the permission 7TV gives them (emotes, or switching sets); Twitch roles don't count.
  • A streamer turns it on by adding LysLink as an editor on 7TV with Manage emote sets, plus Manage profile for !7tv set. Lys accepts the invite within 5 minutes, only from channels it's in.
  • !7tv undo reverses the channel's last change within 30 minutes, if nothing has changed it since: "Undo add emote haha by @user".
  • An add looks the emote up by its 7TV link or ID, or by name (the most-used match), and refuses an emote that's private, deleted, already in the set or named like one there, or a set that's full. Replies show the emote's link and the slots used: "Added KEKW (7tv.app/emotes/…) · 272/600 slots".
  • Each change is logged as one [7TV] line: who, the channel, the set, the emote, and whether it worked.
  • lys 7tv status shows Lys's 7TV account, when its session expires, the channels it edits and the invites left pending; lys 7tv check [<channel>] tries each 7TV lookup and says which fail. Lys logs a warning a week before the session expires, and reads a new one from Cove (LYS_SEVENTV_TOKEN) without a restart.

Fixed

  • A command repeated from Chatterino or 7TV's extension, which add an invisible character to get past Twitch's duplicate filter, now runs like the original instead of reading the character as an extra word.

v0.2.0

Choose a tag to compare

@lighthouse-publisher lighthouse-publisher released this 29 Oct 18:03

v0.2.0 (2026-10-29)

Sleeper: free-agent moves, a weekly recap, and a cleanup of every !ff command.

Added

  • Free-agent moves are announced in the league's channels, like trades and waiver claims. Each team's moves since the last check go out as one message: "🏈 @lu picked up Jaylen Warren and Rashid Shaheed, dropped Zach Ertz", or "🏈 @lu made 7 free agent moves" when the list won't fit in one message. !ff alerts freeagents off turns them off.
  • A weekly recap at 10 AM Eastern on the Tuesday after each week's last game: the results, the highlights (top score, closest game, biggest blowout, best player, most points left on a bench) and the top 3 in the standings, as three messages. Recaps run through the fantasy playoffs, without standings there. A recap more than a day late (Lys was down, say) is skipped. !ff alerts recap off turns them off, and !ff recap [week] shows one any time.
  • !ff help lists the subcommands, and so do !help ff, a bare !ff and a word !ff doesn't know.
  • !ff unlink @user for moderators and the channel's owner, to remove a team link someone else made.
  • !ff matchup [@user] [week] shows past weeks too.

Changed

  • People who linked their team show by their @name in every Sleeper message, and teams nobody linked by team name.
  • Every Sleeper announcement waits in one queue per league and goes out 90 seconds after the last: trades, waiver claims, free-agent moves, lineup reminders and recaps. Waiver claims, which Sleeper processes all at once, are grouped per team like free-agent moves ("🏈 Waivers: @lu claimed Rashid Shaheed ($12), dropped Zach Ertz"). The queue is kept in the database, so a restart or deploy loses and repeats nothing. A queued move more than 12 hours old, or a lineup reminder more than 30 minutes late, isn't posted.
  • A bare !ff links the channel's own league instead of a fixed one.
  • !ff trades [@user] shows the league's last 3 real trades (or one team's), instead of made-up ones.
  • !ff draft shows the league's real draft time and status from Sleeper, instead of a fixed date.
  • !ff standings, scores, roster and playoffs show everything at once, without page numbers; a long answer takes two messages.
  • !ff link <Sleeper name> links your team, and !ff unlink removes your link (!ff link user <name> and !ff unlink user still work). Linking a team someone else has already linked says who, and how a moderator can undo it; linking a second team asks you to unlink the first.
  • Usage messages show the channel's prefix and ff, every Sleeper reply starts with 🏈, and the error messages are plain: "Couldn't reach Sleeper, try again in a moment."
  • A sender whose ID is empty is never taken for the channel's owner.

v0.1.0

Choose a tag to compare

@lighthouse-publisher lighthouse-publisher released this 29 Oct 16:42

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.

v0.0.0

Choose a tag to compare

@lighthouse-publisher lighthouse-publisher released this 28 Oct 19:53

v0.0.0 (2026-10-28)

The first release under the Lys name: a rework of BotSuite.

Added

  • Every deploy first runs gofmt, go vet and the tests with the race detector; a failure stops the deploy.
  • Database migrations: Lys applies them on startup with the migrator role (LYS_DATABASE_MIGRATOR_URL in Cove), and refuses to start if its database is older than it needs. The first migration records the existing schema and changes nothing in it.
  • lys migrate status lists the migrations and when each was applied; lys migrate up applies any that are pending.
  • !help lists the commands, and !help <command> describes one.
  • /health reports whether Twitch is connected, and answers 503 while it isn't, so Docker shows Lys as unhealthy. It also reports the version running (the release or commit Lighthouse deployed), which Lys logs at startup too.
  • Channels, the people who use commands, and the bot account are stored platform-neutrally (communities, connections, platform users, bot accounts), ready for more platforms and for linking accounts on the website. Existing channels, prefixes and users are copied in; the old tables are kept and still written.
  • lys channel list, lys channel add, lys channel block and lys channel unblock manage channels from the command line. A name that several channels share is refused (use the ID), and channel list tells a revoked channel from one that was never authorized.
  • lys bot authorize signs Lys in as its Twitch bot account and stores the tokens in Cove, replacing the manual token exchange.
  • lys help lists every command and guide; lys help <command> shows its usage, flags and examples.
  • !remind <10m|1h30m|2d> <message> posts a reminder in the same channel later (1 minute to 30 days, up to 10 waiting per person), with !remind list and !remind cancel <id>.
  • !autopost add <how often> <message> (e.g. !autopost add 30m Follow!) posts a message on repeat (every 5 minutes to 24 hours, up to 10 per channel), for the channel's owner and moderators. It only posts while chat is active, with at least 5 messages since its last post, so quiet and offline channels get nothing. !autopost list shows each autopost's number, message and next post; !autopost remove <number> stops one.
  • Reminders and autoposts survive restarts; a failed one is retried with backoff, and two Lys instances never run the same one.
  • Lys announces new Letterboxd diary entries itself, replacing LetterboxdWatcher, with the same wording; the "see other entries" link now opens the member's activity page.
  • Sleeper trades and waiver claims are announced in the league's channel, once each; a league's first check only records what already happened. !ff alerts shows which are announced, and !ff alerts <trades|waivers> <on|off> changes it.
  • Adding, blocking or unblocking a channel (with lys channel … too) takes effect within seconds, without a restart.
  • When Twitch says the bot was banned in a channel, or the channel's account is gone, Lys leaves it and lys channel list shows it as revoked; lys channel add brings it back.
  • When Twitch revokes the bot account's own authorization, /health turns unhealthy and the log says to run lys bot authorize.
  • An enrollment API for the website: POST /channels with a platform and channel ID adds the channel (the bot joins within seconds), taking its name from Twitch and refusing IDs Twitch doesn't know; DELETE /channels/{platform}/{id} turns Lys off in it, keeping its settings. It needs the shared token SHARED_LYS_ENROLLMENT_TOKEN and is only reachable on the server's internal network.

Changed

  • Renamed from BotSuite to Lys: the database, schema, roles, Cove keys and container are all lys now.
  • The bot account's Twitch tokens are kept in Cove (LYS_TWITCH_ACCESS_TOKEN, LYS_TWITCH_REFRESH_TOKEN) instead of the database, refreshed at startup and written back after every refresh.
  • The Twitch app token is fetched at startup and kept in memory only.
  • Lys refuses to start if its Twitch tokens belong to an account other than the bot.
  • Built with Go 1.27.3 on Alpine 3.24.
  • Commands run side by side (up to 8 at once), each with its own time limit, so a slow command no longer holds up the others.
  • Replies are paced per channel, one every 1.5 seconds, instead of one per second across every channel.
  • The notification inlet only accepts requests with the shared token (SHARED_LYS_NOTIFICATION_TOKEN), and its port is no longer published on the server: only services on the spark network reach it.
  • The bot ignores its own chat messages.
  • Owner-only commands also accept the channel's broadcaster role, not only a matching Twitch ID.
  • LYS_TWITCH_BOT_ID is only needed until Lys has recorded its bot account.
  • Games, feature requests, Sleeper leagues and Letterboxd subscriptions are linked to channels and people by Lys's own IDs instead of Twitch IDs and names; existing rows are linked automatically at startup.
  • !oneup stats <name> finds people by their current name, and their stats follow them through a rename; fastest and slowest show current names.
  • !request get and !request set are limited to the bot's owner by Twitch ID instead of by display name.
  • A Sleeper member who changes their Twitch name keeps their link, and is found by their new name.

Fixed

  • A command that crashes now replies with an error instead of taking the bot down.
  • A chat message rejected with a 401 is retried once with a new app token instead of forever, which froze the bot for every channel.
  • !ff trades without a name no longer crashes the bot.
  • !gpt no longer crashes the bot when OpenAI is slow, unreachable or returns an error.
  • !sleeper link user no longer crashes when the Sleeper API fails, and says when no one by that name has a team.
  • !sleeper link league works again; it always failed before.
  • !oneup stats <puzzle> for a puzzle with no recorded games says so instead of replying with an error, and !oneup stats <x> <puzzle> shows the game count instead of a memory address.
  • !oneup leaders and unknown !oneup stats forms reply instead of saying the command doesn't exist.
  • Shutting down no longer panics.
  • When Twitch asks the bot to move to a new connection and that fails, the bot opens a fresh connection instead of crashing.
  • A failed connection to Twitch at startup reports the error instead of crashing.
  • A channel without a settings row no longer stops the bot from starting; it uses the ! prefix.
  • Two Lys instances starting at once no longer fail while preparing migrations.
  • A Twitch connection that goes silent is noticed within its keepalive timeout and reopened, instead of leaving the bot deaf.
  • A channel that refuses the bot's messages (banned, timed out, or missing its permission) is paused for 10 minutes instead of failing on every reply; a rate-limited message waits for Twitch's reset and is sent once more.