1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 21:44:21 +00:00
royalnet/royalpack/commands/trionfireali.py

58 lines
1.7 KiB
Python
Raw Normal View History

2020-09-22 02:01:22 +00:00
from typing import *
import logging
2020-09-22 17:42:57 +00:00
import steam.webapi
2020-09-22 02:01:22 +00:00
import royalnet.commands as rc
import royalnet.utils as ru
2020-09-22 17:42:57 +00:00
import requests
2020-09-22 02:01:22 +00:00
from royalnet.backpack import tables as rbt
from .abstract.linker import LinkerCommand
from ..tables import Steam, Dota
from ..types import DotaRank
log = logging.getLogger(__name__)
2020-09-22 17:42:57 +00:00
2020-09-22 02:01:22 +00:00
class TrionfirealiCommand(LinkerCommand):
name: str = "trionfireali"
description: str = "Visualizza il tuo pr⊕gress⊕ nei Tri⊕nfi Reali!"
syntax: str = ""
def describe(self, obj: Steam) -> str:
raise NotImplementedError()
async def get_updatables_of_user(self, session, user: rbt.User) -> List[Dota]:
raise NotImplementedError()
async def get_updatables(self, session) -> List[Dota]:
raise NotImplementedError()
async def create(self,
session,
user: rbt.User,
args: rc.CommandArgs,
data: Optional[rc.CommandData] = None) -> Optional[Dota]:
raise rc.InvalidInputError("Trionfi Reali accounts are automatically linked from Steam.")
async def update(self, session, obj: Steam, change: Callable[[str, Any], Awaitable[None]]):
raise NotImplementedError()
async def on_increase(self, session, obj: Dota, attribute: str, old: Any, new: Any) -> None:
pass
async def on_unchanged(self, session, obj: Dota, attribute: str, old: Any, new: Any) -> None:
pass
async def on_decrease(self, session, obj: Dota, attribute: str, old: Any, new: Any) -> None:
pass
async def on_first(self, session, obj: Dota, attribute: str, old: None, new: Any) -> None:
pass
async def on_reset(self, session, obj: Dota, attribute: str, old: Any, new: None) -> None:
pass