Forum teuk.org

πŸͺ„ Lumos Maxima II β€” Seven Bugs Banished, Eight Spells Cast (May 2026)

in Mediabot Β· started by TeuK Β· 40m ago

TeuK Β· 40m ago

Overview

A full sweep: five K-series tests locked in, two new languages for the Magic 8-Ball, Prometheus counters added to YouTube search and karma history, remind management enriched, and the Partyline grows a direct .remind command. Every loose end from the last wave is now tied down.

β€œLumos Maxima II! Seven bugs banished. Eight spells cast. The grimoire shines brighter than ever.” πŸŒŸπŸ“–


πŸ§ͺ L1 β€” Five New Tests (250–254)

Every K-series feature now has static analysis coverage:

# File What
250 250_usercommands_remind_ops.t K1 marker, list+cancel subcommands, REMINDERS query, delivered=0 filter, from_nick ownership, DELETE, ->finish
251 251_usercommands_trivia_timeout.t K3 marker, TRIVIA_TIMEOUT config read, $trivia_timeout variable, 120s clamp, no hardcoded + 30
252 252_external_yt_search_count.t K4 marker, YT_SEARCH_RESULTS config read, $yt_max variable, maxResults=$yt_max in URL, no hardcoded 3
253 253_external_claude_model.t K6 marker, model subcommand, anthropic.MODEL/CLAUDE_MODEL, Current Claude model output
254 254_partyline_karmahist_cmd.t _cmd_karmahist sub, _karma_log, reverse, 10-entry limit, _seconds_to_human, nick filter, dispatch, help

Total test suite: 241 cases.


🌍 L2 β€” !8ball Spanish Answers (main.LANG = es)

[main]
LANG = es
<teuk> m 8ball va a funcionar?
<mediabotv3> Definitivamente sΓ­.

<teuk> m 8ball ganamos?
<mediabotv3> Muy dudoso.

20 Spanish answers across all three Magic 8-Ball categories. The bot now supports three languages: en (default), fr, and es. Language is selected at runtime β€” no restart needed after config change.


πŸ“Š L3 β€” Prometheus Counters for !yt search and !karmahist

Two new counters visible in Grafana:

mediabot_ytsearch_requests_total    β€” incremented on each !yt search call
mediabot_karmahist_requests_total   β€” incremented on each !karmahist call

Same pattern as mediabot_claude_requests_total. No configuration required β€” incremented after logBot in the success path.


πŸ“‹ L4 β€” !remind Help Entry Updated

!help remind now describes all three subcommands:

remind <nick> <msg> β€” Set a reminder. Also: remind list, remind cancel <id>.

πŸ–₯️ L5 β€” Partyline .remind <nick> <#chan> <message>

Operators can now set reminders directly from the Partyline without joining IRC:

.remind Boole #boulets apporte les logs ce soir
Reminder set for Boole on #boulets.

Uses ensure_connected before any DB query. Validates the channel exists in CHANNEL table. from_nick set to the Partyline login β€” so the reminder owner can still cancel it from IRC with !remind cancel <id>. Listed in .help.


πŸ“¦ Files Changed

File Changes
UserCommands.pm L2 ES answers in mb8ball_ctx; L3 mediabot_karmahist_requests_total
External.pm L3 mediabot_ytsearch_requests_total
Partyline.pm L5 _cmd_remind sub + dispatch + help
Mediabot.pm L4 !remind help entry
t/cases/250…254 5 new test cases

You must be logged in to reply.