Skip to content

darkbot v0.5.0

Choose a tag to compare

@github-actions github-actions released this 18 Nov 18:13
· 25 commits to main since this release

What's new

Chat commands: word triggers and random answers from a text file

A chat command can now react to a word at the start of a message instead
of !name. For example "hi" (with aliases such as "hallo" and "moin")
also catches "Hi!" and "hi everyone"; case and the punctuation around
the word don't matter. The streamer's own messages never trigger a word,
so their "hi" to chat doesn't make their account answer itself. A word
and a !command may share a name. Song command names are reserved only
for !commands.

A command can answer with a random line from a text file the streamer
picks:

  • one answer per line; {user} and {target} work
  • empty lines are skipped; a UTF-8 BOM and CRLF line ends are handled
  • at most 1 MB and 10,000 lines per file
  • the file is linked, not copied, and read again when its time or size
    changes, so it can be edited during a stream
  • the same line never comes twice in a row
  • a missing or empty file gives no answer, is logged, and uses up no
    cooldown

"Answer each viewer only once per stream" suits greetings. It is on by
default for new word commands, and the list of answered viewers resets
when the stream goes live.

Command editor: choice of trigger, answer as text or file (it shows how
many answers the file has), and the once-per-stream switch. The command
list shows words without "!" and the answer file's name.

CI: time-box and retry the Linux package install

Ubuntu's package mirrors stalled the "Linux GUI dependencies" step for more than 15 minutes twice today: during the v0.4.0 release, which delayed the downloads, and on the next build. Each apt run now has a time limit (update 5 min, install 10 min, 30 s network timeout plus apt's own retries) and is retried up to three times. The step gives up after 20 minutes instead of blocking a release.

Dashboard: status colors, YouTube Music always in Logins

The dashboard keeps its layout and gets status colors. Each Logins card
now has a state, shown by the LED, a state word and, when the card needs
the streamer, a tinted frame:

  • Running (green)
  • Attention (amber): the Spotify login ends within 14 days, or Twitch
    needs a reconnect for new permissions. The card says why and offers
    "Connect again".
  • Problem (red): the last call failed, with the error shown.
  • Off / Unchecked (grey)

Color is never the only sign: every state has a word too.

The YouTube Music card is always shown (off, with Connect, when it isn't
set up). It reads "Unchecked" until Pear Desktop has answered once since
darkbot started, because darkbot doesn't poll it.

Top bar: Redemptions turns red when logged in but not receiving, OBS red
in OBS output mode without a connection, Twitch amber when a reconnect is
needed.

Meters: unfollows, refused redemptions and rejected song requests show
red once they are above zero.

Download

  • Windows 10/11: darkbot-windows-amd64.exe
  • macOS, Apple Silicon: darkbot-macos-arm64.app.zip
  • macOS, Intel: darkbot-macos-amd64.app.zip
  • Linux: darkbot-linux-amd64

Already installed? darkbot updates itself on the next start.

Full changelog: v0.4.0...v0.5.0