1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2025-04-02 21:30:31 +00:00
royalnet/royalnet/commands/author.py

18 lines
583 B
Python

from ..utils import Command, Call
from ..database.tables import Royal, Telegram
class AuthorCommand(Command):
command_name = "author"
command_description = "Ottieni informazioni sull'autore di questa chiamata."
command_syntax = ""
require_alchemy_tables = {Royal, Telegram}
@classmethod
async def common(cls, call: Call):
author = await call.get_author()
if author is None:
await call.reply(f"☁️ L'autore di questa chiamata è sconosciuto.")
await call.reply(f"🌞 {str(author)} è l'autore di questa chiamata.")