diff --git a/app/modules/slack/__init__.py b/app/modules/slack/__init__.py index 1b7935f87..efd8e4a2e 100644 --- a/app/modules/slack/__init__.py +++ b/app/modules/slack/__init__.py @@ -23,7 +23,7 @@ def init_module(self) -> None: self._configs = {} self._clients = {} for client in clients: - if client.type == "telegram" and client.enabled: + if client.type == "slack" and client.enabled: self._configs[client.name] = client self._clients[client.name] = Slack(**client.config, name=client.name) diff --git a/app/modules/synologychat/__init__.py b/app/modules/synologychat/__init__.py index ac861c731..6000b375d 100644 --- a/app/modules/synologychat/__init__.py +++ b/app/modules/synologychat/__init__.py @@ -20,7 +20,7 @@ def init_module(self) -> None: self._configs = {} self._clients = {} for client in clients: - if client.type == "slack" and client.enabled: + if client.type == "synologychat" and client.enabled: self._configs[client.name] = client self._clients[client.name] = SynologyChat(**client.config) diff --git a/app/schemas/system.py b/app/schemas/system.py index 5b910076f..f39be609f 100644 --- a/app/schemas/system.py +++ b/app/schemas/system.py @@ -41,7 +41,7 @@ class NotificationConf(BaseModel): """ # 名称 name: Optional[str] = None - # 类型 telegram/wechat/vocechat/synologychat + # 类型 telegram/wechat/vocechat/synologychat/slack/webpush type: Optional[str] = None # 配置 config: Optional[dict] = {}