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

20 lines
652 B
Python
Raw Normal View History

2020-05-11 00:46:12 +02:00
from typing import *
2019-11-11 09:56:08 +01:00
import telegram
2020-08-20 03:20:53 +02:00
import royalnet.commands as rc
import royalnet.serf.telegram as rst
2019-11-11 09:56:08 +01:00
2020-08-20 03:20:53 +02:00
class CiaoruoziCommand(rc.Command):
2019-11-11 09:56:08 +01:00
name: str = "ciaoruozi"
2020-05-14 00:11:48 +02:00
description: str = "Saluta Ruozi, un leggendario essere che è tornato in Royal Games."
2019-11-11 09:56:08 +01:00
2020-08-20 03:20:53 +02:00
async def run(self, args: rc.CommandArgs, data: rc.CommandData) -> None:
if isinstance(self.serf, rst.TelegramSerf):
2020-01-20 19:04:59 +01:00
user: telegram.User = data.message.from_user
# Se sei Ruozi, salutati da solo!
2019-11-11 09:56:08 +01:00
if user.id == 112437036:
await data.reply("👋 Ciao me!")
return
await data.reply("👋 Ciao Ruozi!")