mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
18 lines
601 B
Python
18 lines
601 B
Python
from typing import *
|
|
import telegram
|
|
from royalnet.commands import *
|
|
|
|
|
|
class CiaoruoziCommand(Command):
|
|
name: str = "ciaoruozi"
|
|
|
|
description: str = "Saluta Ruozi, un leggendario essere che è tornato in Royal Games."
|
|
|
|
async def run(self, args: CommandArgs, data: CommandData) -> None:
|
|
if self.interface.name == "telegram":
|
|
user: telegram.User = data.message.from_user
|
|
# Se sei Ruozi, salutati da solo!
|
|
if user.id == 112437036:
|
|
await data.reply("👋 Ciao me!")
|
|
return
|
|
await data.reply("👋 Ciao Ruozi!")
|