Files
LihonT/sdk/lihont-ltp/examples/02_quiet_night.py
2026-11-01 17:52:48 +03:00

16 lines
702 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Пример 2: ночью прятать челленджи и один раз за день сказать об этом.
from lihont_ltp import *
plugin = Plugin("Тихая ночь", author="Вася", description="Ночью прячет челленджи и пранки")
# «и» — это &, «или» — это |, «не» — это ~
plugin.video(
night & (hashtag("challenge", "prank") | word("челлендж", "пранк")),
hide,
say("Тихая ночь: челленджи скрыты"),
limit=1, # подсказка не чаще одного раза в день
title="Ночью без челленджей",
)
plugin.save()