Skip to content

Commit

Permalink
fix: name
Browse files Browse the repository at this point in the history
  • Loading branch information
krypton-byte committed Mar 12, 2024
1 parent ffa06c5 commit 32e59b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions thundra/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,10 @@ def command(f: Callable[[NewClient, Message], Any]):


class Command(Filter):
def __init__(self, command: str, prefix: Optional[str] = None, space_detection: bool = False) -> None:
self.command = command + (' 'if space_detection else '')
def __init__(
self, command: str, prefix: Optional[str] = None, space_detection: bool = False
) -> None:
self.command = command + (" " if space_detection else "")
self.prefix = config.prefix if prefix is None else prefix
super().__init__()

Expand Down
2 changes: 1 addition & 1 deletion thundra/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def config_format(config: Optional[Dict] = None, path="") -> dict:

@dataclass
class Config:
prefix: str = config_toml['thundra']['prefix']
prefix: str = config_toml["thundra"]["prefix"]


config = Config()

0 comments on commit 32e59b8

Please sign in to comment.