refactor: make players and songs object-oriented

This commit is contained in:
2024-12-30 19:52:20 -05:00
parent db355e8ade
commit dc795f7ffe
6 changed files with 114 additions and 84 deletions

View File

@@ -32,7 +32,7 @@ def match_token(token: str) -> list[Command]:
)
def match(command: str) -> None | list[Command]:
def match(command: str) -> list[Command] | None:
if tokens := tokenize(command):
return match_token(tokens[0])