Three small daily-driver packs mirrored with python (commit 02ab8a4 or similar).
now_playing
- "что играет" / "что за песня" / "какой трек" / "что слушаю"
- Reads Windows.Media.Control.GlobalSystemMediaTransportControlsSessionManager
via PowerShell — works with Spotify/YouTube/Foobar/Winamp/Yandex Music
(anything that exposes Windows SMTC, Win10 1803+).
- Speaks "Сейчас играет: <Artist> — <Title>" or just "<Title>" if no artist.
world_clock
- "сколько времени в Токио" / "время в Лондоне"
- 21+ pre-mapped Russian/world city names → IANA timezones.
- Fetches worldtimeapi.org (free, no key, no rate-limit headers exposed).
- Parses ISO 8601 datetime, speaks "В <city> сейчас HH:MM."
daily_quote
- "цитата дня" / "вдохнови меня"
- zenquotes.io (free, no key) → English quote.
- LLM translates to Russian via active backend (Groq or Ollama).
- Falls back to LLM-generated quote if zenquotes is unreachable.
- Speaks "<translated quote> — <author>."
Tests: 6 commands tests pass (no_duplicate_ids / no_empty_phrases /
all_lua_scripts_exist auto-validate the 3 new packs).
Pack count: 72 → 75.
19 lines
448 B
TOML
19 lines
448 B
TOML
# Daily quote — random motivational quote.
|
|
|
|
[[commands]]
|
|
id = "daily_quote"
|
|
type = "lua"
|
|
script = "quote.lua"
|
|
sandbox = "full"
|
|
timeout = 15000
|
|
|
|
[commands.phrases]
|
|
ru = [
|
|
"цитата дня",
|
|
"мотивирующая цитата",
|
|
"скажи цитату",
|
|
"вдохнови меня",
|
|
"цитата",
|
|
]
|
|
en = ["quote of the day", "motivational quote", "inspire me"]
|
|
ua = ["цитата дня", "надихни мене"]
|