An open API service indexing awesome lists of open source software.

https://github.com/monsterxcn/nonebot-plugin-gsabyss

🤖 NoneBot2 原神深境螺旋数据查询插件,数据来源 Honey Hunter World & Akasha Database
https://github.com/monsterxcn/nonebot-plugin-gsabyss

abyss genshin nonebot2

Last synced: 10 days ago
JSON representation

🤖 NoneBot2 原神深境螺旋数据查询插件,数据来源 Honey Hunter World & Akasha Database

Awesome Lists containing this project

README

        

NoneBot Plugin GsAbyss

🤖 用于展示原神深境螺旋数据的 NoneBot2 插件


license
pypi
python
QQ Chat Group

Code style: black
Imports: isort
Lint: flake8
pre-commit

| ![全层](https://user-images.githubusercontent.com/22407052/217551477-a0a252a9-31b4-4bb0-8b08-41cfe26679d6.jpg) | ![单间](https://user-images.githubusercontent.com/22407052/217551559-4f75ad13-1a74-42e1-adfc-06c6b0521263.jpg) | ![统计](https://user-images.githubusercontent.com/22407052/218297626-463b5ab3-8500-4337-980f-000bb4289439.png) |
|:--:|:--:|:--:|

## 安装方法

如果你正在使用 2.0.0.beta1 以上版本 NoneBot2,推荐使用以下命令安装:

```bash
# 从 nb_cli 安装
nb plugin install nonebot-plugin-gsabyss
```

## 插件配置

一般来说,此插件安装后无需任何配置即可使用。你也可以根据需要配置以下环境变量:

| 环境变量 | 必需 | 默认 | 说明 |
|:-------|:----:|:-----|:----|
| `gsabyss_dir` | 否 | `data/gsabyss` | 插件数据缓存目录 |
| `gsabyss_priority` | 否 | 10 | 插件响应优先级。触发本插件功能的消息无法被优先级低于此配置的其他插件处理 |
| `hhw_mirror` | 否 | `https://genshin.honeyhunterworld.com/img/` | 素材图片下载镜像,**暂不可用** |

## 命令说明

### 深渊速览

插件响应以 `速览` / `深渊速览` 开头的消息,并且阻止事件继续向下传播。默认返回 **本期** **12** 层 **全层** 的深渊速览图片。

你也可以通过合理搭配下面格式的参数限定查找的内容。各参数按空格分开即可,顺序随意。

| 可选附带参数 | 说明 |
|:--------|:-----|
| `12` / `十二` / `十二层` / `第12层` / ... | 查询指定层全层的深渊速览 |
| `12-3` / `12—3` / `12-3` / `12_3` / ... | 查询指定层指定间的深渊速览 |
| `上期` / `下期` | 查询上期或下期的深渊速览 |
| `三月上` / `22年3月上` / `2022年三月上` / ... | 查询指定时间的深渊速览 |

### 深渊统计

插件 **仅响应** `深渊统计` 消息,不可附带任何参数,并且阻止事件继续向下传播。默认返回虚空数据库(Akasha Database)最新的深渊统计图片。

## 特别鸣谢

[@nonebot/nonebot2](https://github.com/nonebot/nonebot2/) | [@Mrs4s/go-cqhttp](https://github.com/Mrs4s/go-cqhttp) | [Honey Hunter World](https://genshin.honeyhunterworld.com/d_1001/) | [Akasha Database](https://akashadata.com/)

> 深渊数据解析采用 [parse-hhw-abyss](https://github.com/monsterxcn/parse-hhw-abyss) 分离控制