Metadata-Version: 2.1
Name: nonebot-plugin-nezha
Version: 0.4.2
Summary: nonebot哪吒监控插件，使用哪吒监控API。
License: MIT
Author: eya46
Author-email: 61458340+eya46@users.noreply.github.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: jsonpath (>=0.82.2,<0.83.0)
Requires-Dist: nonebot-plugin-alconna (>=0.35.0,<1.0.0)
Requires-Dist: nonebot2[httpx] (>=2.2.0,<3.0.0)
Description-Content-Type: text/markdown

<p align="center">
  <a href="https://nonebot.dev/"><img src="https://nonebot.dev/logo.png" width="200" height="200" alt="nonebot"></a>
</p>

<div align="center">

# NoneBot Plugin NeZha
## 哪吒监控插件

![License](https://img.shields.io/github/license/eya46/nonebot_plugin_nezha)
![Python](https://img.shields.io/badge/python-3.8+-blue.svg)
![NoneBot](https://img.shields.io/badge/nonebot-2.2.0+-red.svg)
</div>

## 安装方式

### 依赖管理

- `pip install nonebot-plugin-nezha`
- `poetry add nonebot-plugin-nezha`
- `pdm add nonebot-plugin-nezha`

> 在 `bot.py` 中添加 `nonebot.load_plugin("nonebot_plugin_nezha")`

### nb-cli

- `nb plugin install nonebot-plugin-nezha`

## 使用方式

- 哪吒帮助 [index: int]
- vps列表 [tag: str]
- vps [arg: int|str]

## 配置项

### 必要配置项

- `nezha_api`: 哪吒监控 api地址
- `nezha_token`: 哪吒监控 token

### 非必要配置项

详见 [config.py](./nonebot_plugin_nezha/config.py) [Config](./nonebot_plugin_nezha/config.py#L10-L59)

### 推荐配置项

```dotenv
nezha_api=""
nezha_token=""
# 默认的分组
nezha_arg_default="国内"
# 在线/离线 的文本
nezha_template_online_offline=["🟢","🔴"]
```

## 依赖项

- [nonebot2](https://github.com/nonebot/nonebot2)[httpx]
    - `^2.2.0`
- [plugin-alconna](https://github.com/nonebot/plugin-alconna)
    - `>=0.35.0,<1.0.0`

## 相关

- 哪吒监控官网 https://nezha.wiki
- 哪吒监控项目地址 https://github.com/naiba/nezha

## 效果

- 哪吒帮助
  <img src="./img/0.jpg">
- vps
  <img src="./img/1.jpg">
- vps列表
  <img src="./img/2.jpg">
