1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2025-02-17 10:53:57 +00:00
royalnet/royalpack/commands/ciaoruozi.py

24 lines
720 B
Python
Raw Normal View History

2021-04-03 19:13:53 +02:00
import royalnet.engineer as engi
2021-04-17 04:19:11 +02:00
import royalnet_telethon
import royalnet_telethon.bullet.contents
2021-04-30 15:22:58 +02:00
import royalpack.bolts as rb
2021-04-03 19:13:53 +02:00
2021-04-30 15:22:58 +02:00
@rb.capture_errors
2021-04-17 04:19:11 +02:00
@engi.TeleportingConversation
2021-04-19 05:26:20 +02:00
async def ciaoruozi(*, _msg: engi.Message, _imp, **__):
2021-04-03 19:13:53 +02:00
"""
Saluta Ruozi, una creatura leggendaria che potrebbe esistere o non esistere in Royal Games.
"""
2021-04-17 04:19:11 +02:00
if isinstance(_imp, royalnet_telethon.TelethonPDAImplementation):
sender: royalnet_telethon.bullet.contents.TelegramUser = await _msg.sender
2021-04-03 19:13:53 +02:00
# noinspection PyProtectedMember
if sender._user.id == 112437036:
2021-04-20 02:43:48 +02:00
await _msg.reply(text="👋 Ciao \uE01Bme\uE00B!")
2021-04-03 19:13:53 +02:00
await _msg.reply(text="👋 Ciao Ruozi!")
2021-04-15 02:40:51 +02:00
__all__ = ("ciaoruozi",)