diff options
author | Kyomotoi <[email protected]> | 2021-07-31 16:21:23 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2021-07-31 16:21:23 +0800 |
commit | 1d54ec291f2c25cc01f24d0d0163d0bf889457fd (patch) | |
tree | 251004df3f659f79b96b9abce59cc1140e24498c /ATRI/plugins/status/__init__.py | |
parent | beb16b60fe4d8586436f5ada5fdabb6db23f5a29 (diff) | |
parent | 36d26d1dc61c36b4601aaf75e148060c5bcb98a7 (diff) | |
download | ATRI-1d54ec291f2c25cc01f24d0d0163d0bf889457fd.tar.gz ATRI-1d54ec291f2c25cc01f24d0d0163d0bf889457fd.tar.bz2 ATRI-1d54ec291f2c25cc01f24d0d0163d0bf889457fd.zip |
Merge branch 'main' of https://github.com/Kyomotoi/ATRI into main
Diffstat (limited to 'ATRI/plugins/status/__init__.py')
-rw-r--r-- | ATRI/plugins/status/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ATRI/plugins/status/__init__.py b/ATRI/plugins/status/__init__.py index 0567bb4..2746953 100644 --- a/ATRI/plugins/status/__init__.py +++ b/ATRI/plugins/status/__init__.py @@ -6,6 +6,7 @@ from .data_source import IsSurvive ping = IsSurvive().on_command("/ping", "检测bot简单信息处理速度") + @ping.handle() async def _ping(bot: Bot, event: MessageEvent): await ping.finish(IsSurvive.ping()) @@ -13,6 +14,7 @@ async def _ping(bot: Bot, event: MessageEvent): status = IsSurvive().on_command("/status", "查看运行资源占用") + @status.handle() async def _status(bot: Bot, event: MessageEvent): msg, _ = IsSurvive.get_status() |