This commit is contained in:
jxxghp
2023-11-05 21:17:29 +08:00
parent 51b4da1c78
commit 76f82a15c3
3 changed files with 3 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ class BarkMsg(_PluginBase):
self._params = config.get("params")
def get_state(self) -> bool:
return self._enabled and self._server and self._apikey
return self._enabled and (True if self._server and self._apikey else False)
@staticmethod
def get_command() -> List[Dict[str, Any]]:

View File

@@ -42,7 +42,7 @@ class IyuuMsg(_PluginBase):
self._msgtypes = config.get("msgtypes") or []
def get_state(self) -> bool:
return self._enabled and self._token
return self._enabled and (True if self._token else False)
@staticmethod
def get_command() -> List[Dict[str, Any]]:

View File

@@ -44,7 +44,7 @@ class PushDeerMsg(_PluginBase):
self._apikey = config.get("apikey")
def get_state(self) -> bool:
return self._enabled and self._server and self._apikey
return self._enabled and (True if self._server and self._apikey else False)
@staticmethod
def get_command() -> List[Dict[str, Any]]: