System Gen94 @ 2025-08-01-00:58:27 by jonas@monolith

This commit is contained in:
2025-08-01 00:58:27 +02:00
parent 9a056ce6b0
commit 1616d78385
4 changed files with 79 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
from abc import ABC, abstractmethod
from spotify_shortcuts.config import Config
from spotipy import Spotify
class Shortcut(ABC):
@abstractmethod
def execute(self, client: Spotify, config: Config):
"""Execute the shortcut action."""
pass
@abstractmethod
def get_help(self) -> str:
"""Return a description of the shortcut."""
pass
@abstractmethod
def get_scopes(self) -> list[str]:
"""Return the spotify API scopes required for the shortcut."""
pass