feat: parity — reminders, today/tomorrow/yesterday, voice type, dice, stopwatch (67 commands)
Mirrors the rust feature/pc-tools work. yaml.safe_load + ast.parse pass.
Commands count: 56 → 67 (+11).
main.py:
+ do_set_reminder — strips trigger, parses "N (секунд|минут|часов)"
with Russian-word numeral support (один/две/пять/десять/...).
Spawns a daemon thread that time.sleep()s then runs tts.va_speak
+ PowerShell WScript.Shell.Popup. Defaults to 5 min when number/
unit are missing.
+ do_date_query — accepts {offset: 0/1/-1}, computes target date with
datetime.timedelta, formats with hardcoded Russian weekday/month
names (no locale dependency), speaks "Сегодня/Завтра/Вчера + ...".
+ do_type_text — clipboard + pyautogui.hotkey('ctrl', 'v') so it
works in any focused window.
+ do_dice — coin/dice/random via random.choice / random.randint.
+ do_stopwatch — stores start ts in
%LOCALAPPDATA%\com.priler.jarvis\stopwatch.txt; start/check/stop
ops with humanised elapsed string.
commands.yaml +11 entries:
+ set_reminder
+ today / tomorrow / yesterday (action: date_query, offset: 0/1/-1)
+ type_text
+ coin_flip / roll_dice / random_number (action: dice, kind: ...)
+ stopwatch_start / stopwatch_check / stopwatch_stop
(action: stopwatch, op: start/check/stop)
This commit is contained in:
parent
69359ed5c0
commit
5790ca18af
2 changed files with 254 additions and 0 deletions
|
|
@ -469,6 +469,90 @@ open_sound_panel:
|
|||
- управление звуком
|
||||
action: {type: open_sound_panel}
|
||||
|
||||
set_reminder:
|
||||
phrases:
|
||||
- напомни через
|
||||
- напомни мне через
|
||||
- поставь напоминание через
|
||||
- установи таймер на
|
||||
- таймер на
|
||||
action: {type: set_reminder}
|
||||
|
||||
today:
|
||||
phrases:
|
||||
- какой сегодня день
|
||||
- какое сегодня число
|
||||
- сегодня какое число
|
||||
- что сегодня
|
||||
action: {type: date_query, offset: 0}
|
||||
|
||||
tomorrow:
|
||||
phrases:
|
||||
- какой день завтра
|
||||
- что завтра
|
||||
- завтра какое число
|
||||
- какое число завтра
|
||||
action: {type: date_query, offset: 1}
|
||||
|
||||
yesterday:
|
||||
phrases:
|
||||
- какой был вчера день
|
||||
- что было вчера
|
||||
- вчера какое число было
|
||||
action: {type: date_query, offset: -1}
|
||||
|
||||
type_text:
|
||||
phrases:
|
||||
- напечатай
|
||||
- набери текст
|
||||
- введи текст
|
||||
- впиши
|
||||
action: {type: type_text}
|
||||
|
||||
coin_flip:
|
||||
phrases:
|
||||
- подбрось монетку
|
||||
- брось монетку
|
||||
- орёл или решка
|
||||
- орел или решка
|
||||
action: {type: dice, kind: coin}
|
||||
|
||||
roll_dice:
|
||||
phrases:
|
||||
- брось кубик
|
||||
- подбрось кубик
|
||||
- кинь кубик
|
||||
action: {type: dice, kind: dice}
|
||||
|
||||
random_number:
|
||||
phrases:
|
||||
- случайное число
|
||||
- выбери случайное число
|
||||
- рандомное число
|
||||
action: {type: dice, kind: random}
|
||||
|
||||
stopwatch_start:
|
||||
phrases:
|
||||
- засеки время
|
||||
- запусти секундомер
|
||||
- старт секундомер
|
||||
- включи секундомер
|
||||
action: {type: stopwatch, op: start}
|
||||
|
||||
stopwatch_check:
|
||||
phrases:
|
||||
- сколько прошло
|
||||
- сколько времени прошло
|
||||
- проверь секундомер
|
||||
action: {type: stopwatch, op: check}
|
||||
|
||||
stopwatch_stop:
|
||||
phrases:
|
||||
- стоп секундомер
|
||||
- останови секундомер
|
||||
- выключи секундомер
|
||||
action: {type: stopwatch, op: stop}
|
||||
|
||||
thanks:
|
||||
phrases:
|
||||
- спасибо
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue