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

13 lines
557 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.
# Пример 3: к моему имени добавляется значок по времени суток (чужие имена не трогаем).
from lihont_ltp import *
plugin = Plugin("Значок дня", author="Вася", description="К твоему имени добавляет солнышко или луну")
plugin.name(me & morning, after(" ☀️"))
plugin.name(me & day, after(" 🌤️"))
plugin.name(me & evening, after(" 🌆"))
plugin.name(me & night, after(" 🌙"))
plugin.name(me & friday, after(" 🎉"))
plugin.save()