# pupbot-plugin-true_setu

> 涩涩机器人

Latest version **1.2.0** (published 2023-01-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install pupbot-plugin-true_setu
pnpm add pupbot-plugin-true_setu
yarn add pupbot-plugin-true_setu
bun add pupbot-plugin-true_setu
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2023-01-24 |
| First published | 2023-01-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 25.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Truraly |
| Maintainers | truraly |
| Keywords | pupbot, 涩涩 |

## Links

- npm: https://www.npmjs.com/package/pupbot-plugin-true_setu
- npm.io page: https://npm.io/package/pupbot-plugin-true_setu

## Recent versions

- 1.2.0 (latest) — 2023-01-24
- 1.1.0 — 2023-01-06
- 1.0.1 — 2023-01-06
- 1.0.0 — 2023-01-06

## README

# 涩涩机器人

> 使用本插件需要手动下载`node-schedule`包
> 
> 使用`npm i node-schedule`下载

hentai值规则设定：
```
每个人都有一个hentai值，获取一次涩图就会增加一点hentai值
hentai值越高，获取涩图的cd就越长
hentai值每天凌晨会降低一点
```
> 你也可以在设置中关闭或修改这些设定

bot管理员可以在任何地方获取色图（但会受到cd的影响）

## bot管理员功能

- **开启/关闭超级管理员功能:** `ty ss super admin on/off`

打开后bot管理员无cd和hentai值的影响

- **设置本群管理员权限:** `ty ss set admin on/off`

仅在群聊中使用，指定谁能设置bot

```
- off:仅bot管理员(默认值)
- on:bot管理员+群管理员
```

**注意:** 每个群的设置是独立的

## 群设置

群设置需要有权限，详情参考上面的`ty ss set admin on/off`

**注意:** 每个群的设置是独立的

> 私聊bot发送相关指令可以修改私聊获取涩图的规则

- **查询群/私聊状态：**`ty ss status`

获取本群/私聊配置

- **开关群/私聊涩图功能:** `ty setu open/close`

> 群主&管理员&群员都受到影响

- **设置自动撤回：** `ty ss auto ch [ms]`

设置自动撤回的时间，如果>120000则不会撤回

例：
```
ty ss auto ch 10000
// 打开自动撤回并设置撤回时间为10秒
ty ss auto ch 200000
// 关闭自动撤回
```
- **设置罚时：** `ty ss pt [ms]`

设置罚时倍率，设置为0时关闭罚时

默认开启并且倍率为1000ms

> 罚时的计算方法：例如在罚时为1000的情况下
> 
> 当一个人hentai值增加1时，cd增加1*1000

例：
```
ty ss pt 1000
// 打开罚时并设置倍率为1000
ty ss pt 0
// 关闭罚时
```

- **设置色图获取cd** `ty ss cd [ms]`

设置色图获取基础cd，真实的cd还要加上hentai值*罚时倍率

默认30s

例：
```
ty ss cd 30000
// 设置基础cd为30秒
ty ss cd 0
// 关闭cd
```

- **获取群绅士榜单：**`ty hentai list`

获取本群hentai值排行榜

私聊则获取总榜

## 群员指令

只有在本群开启涩涩时才能使用

- **获取菜单：**`涩涩 help`

- **获取涩图：**`涩涩+[(可选)参数]`

例子：

```
涩涩
// 获取随机涩图
涩涩原神
// 获取原神涩图
```

# 关于涩图

涩，但只涩一点点，涩太多了tx不让发，所以你们别太兴奋


# 配置文件

一般来说不需要更改配置，有需要可以自行更改（记得先关机再改）

```json
{
    // 超级管理员：bot管理员获取色图无cd，hentai值
    "super_admin": false,
    // 群列表
    "group_list": [
        {
            // 群名，0号为私聊配置
            "name": "私聊配置",
            // 群号
            "group_id": 0,
            // 本群bot管理权
            // 若为true则管理员可设置
            // 私聊该配置无效
            "admin": false,
            // 自动撤回
            // 默认30000，超过120000视为不撤回
            "auto_ch": 30000,
            // 获取色图权限
            // true则大家都可以获取涩图
            "setu_get": false,
            // 获取色图的cd可设置为0
            "setu_cd": 30000,
            // 罚时设置
            // 设为0则为不开启，默认1000
            "punish_time": 1000
        }
    ],
    // 绅士列表
    "sex_list": [
        // 第一个是案例，会被自动清除的
        {
            // hentai值
            "hentai": 0,
            // QQid
            "qq_id": 0,
            // 上一次涩涩的时间
            "last_time": 0
        },
    ]
}
```

---
_Source: https://npm.io/package/pupbot-plugin-true_setu · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
