2019-11-11 08:56:08 +00:00
|
|
|
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."
|
|
|
|
|
|
|
|
async def run(self, args: CommandArgs, data: CommandData) -> None:
|
|
|
|
if self.interface.name == "telegram":
|
2020-01-20 18:04:59 +00:00
|
|
|
user: telegram.User = data.message.from_user
|
2019-11-28 01:30:40 +00:00
|
|
|
# Se sei Ruozi, salutati da solo!
|
2019-11-11 08:56:08 +00:00
|
|
|
if user.id == 112437036:
|
|
|
|
await data.reply("👋 Ciao me!")
|
|
|
|
return
|
|
|
|
await data.reply("👋 Ciao Ruozi!")
|