基于 nonebot2和Lagrange.OneBot 的运行状态插件
Project description
## 📖 介绍
状态插件,用于获取机器人和服务器的当前状态。
[!WARNING] 这个插件只在Lagrange协议端上测试过,其他协议端可能会出现KeyError错误?
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-running_state
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-running_state
pdm
pdm add nonebot-plugin-running_state
poetry
poetry add nonebot-plugin-running_state
conda
conda install nonebot-plugin-running_state
打开 nonebot2 项目根目录下的 pyproject.toml
文件, 在 [tool.nonebot]
部分追加写入
plugins = ["nonebot_plugin_running_state"]
🎉 使用
指令表
指令 | 权限 | 需要@ | 范围 | 说明 |
---|---|---|---|---|
状态 | 所有人都可以用 | 否 | 群聊和私聊都可以 | 记得加前缀哦 |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nonebot_plugin_running_state-0.0.2.tar.gz
.
File metadata
- Download URL: nonebot_plugin_running_state-0.0.2.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da9ba8ff1c1fe518d24355fdb4e2722874a4e92ce30ad31e44f9320605504562 |
|
MD5 | a5edda3a79af083d7a0b2a869d5c5f38 |
|
BLAKE2b-256 | 294308c3433ef44498a2c739b53c396b7d46559276149bc32af563470a014031 |
File details
Details for the file nonebot_plugin_running_state-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_running_state-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 863f4be28f668e41ba6718bbc3ad5e288bc3019bdd3a8fbe457aec86922db471 |
|
MD5 | fd0334a58a2945c1f41b20019de56e02 |
|
BLAKE2b-256 | ccb2614efa1c3c9ce80d21e4a26155c6447eefef9a688c2d37c4f7dc8db5fb96 |