Skip to content

Commit 7005b8e

Browse files
committed
add visiable option to plugin
1 parent 14c8175 commit 7005b8e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/wechaty/plugin.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ class WechatyPlugin(ABC, WechatySchedulerMixin, WechatyEventMixin):
389389
AVATAR = 'https://avatars.githubusercontent.com/u/10242208?v=4'
390390
AUTHOR_LINK = "https://github.com/wj-Mcat"
391391
ICON = "https://wechaty.js.org/img/wechaty-icon.svg"
392+
VISIABLE = True
392393
VIEW_URL = None
393394
UI_DIR = None
394395

@@ -618,6 +619,9 @@ async def get_plugins_nav() -> Response:
618619

619620
navs = []
620621
for plugin in self.plugins():
622+
if not plugin.VISIABLE:
623+
continue
624+
621625
nav = NavDTO(
622626
name=plugin.name,
623627
status=int(

0 commit comments

Comments
 (0)