mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
22 lines
653 B
Python
22 lines
653 B
Python
import typing
|
|
import telegram
|
|
from royalnet.commands import *
|
|
|
|
|
|
class CiaoruoziCommand(Command):
|
|
name: str = "ciaoruozi"
|
|
|
|
description: str = "Saluta Ruozi, un leggendario essere che una volta era in User Games."
|
|
|
|
syntax: str = ""
|
|
|
|
tables: typing.Set = set()
|
|
|
|
async def run(self, args: CommandArgs, data: CommandData) -> None:
|
|
if self.interface.name == "telegram":
|
|
update: telegram.Update = data.update
|
|
user: telegram.User = update.effective_user
|
|
if user.id == 112437036:
|
|
await data.reply("👋 Ciao me!")
|
|
return
|
|
await data.reply("👋 Ciao Ruozi!")
|