diff --git a/thundra/command.py b/thundra/command.py index fb83fee..ab13e9f 100644 --- a/thundra/command.py +++ b/thundra/command.py @@ -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__() diff --git a/thundra/config.py b/thundra/config.py index e2d53cc..b12dd78 100644 --- a/thundra/config.py +++ b/thundra/config.py @@ -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()