# fraq-plugin-ostracism

> 陶片放逐（禁言）你的群友

Latest version **0.4.0** (published 2026-08-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install fraq-plugin-ostracism
pnpm add fraq-plugin-ostracism
yarn add fraq-plugin-ostracism
bun add fraq-plugin-ostracism
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2026-08-21 |
| First published | 2026-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Wesley-Young |
| Maintainers | wesley-young |

## Links

- npm: https://www.npmjs.com/package/fraq-plugin-ostracism
- Repository: https://github.com/fraqjs/plugin-ostracism
- npm.io page: https://npm.io/package/fraq-plugin-ostracism

## Recent versions

- 0.4.0 (latest) — 2026-08-21
- 0.2.1 — 2026-07-21
- 0.2.0 — 2026-07-01
- 0.1.1 — 2026-06-30
- 0.1.0 — 2026-06-30

## README

# fraq-plugin-ostracism

陶片放逐（禁言）你的群友。

## 安装与配置

将插件添加到 `fraq.yml` 的 `plugins` 字段下：

```yaml
plugins:
  ostracism:
    # 投票阈值，达到该票数后将禁言用户，默认值为 3
    voteThreshold: 3
    # 投票超时时间（分钟），超过该时间后将结束投票，默认值为 5
    muteTimeoutMinute: 5
    # 一个函数，接收投票数作为参数，返回禁言时长（秒）
    # 默认值为 `(voteCount) => (voteCount - 2) * 10 * 60`，即 `(投票数 - 2) * 10 分钟`
    # 例如，在默认配置下，如果 4 票通过，则禁言时长为 20 分钟。
    # 该配置只能在 TypeScript 中使用，fraq.yml 中无法配置 JS 函数
    # muteDurationSecond: (voteCount) => (voteCount - 2) * 10 * 60
```

## Usage

```
陶片禁言 @群友
```

随后机器人会在群里发起一个禁言提案，`muteTimeoutMinute` 分钟内如果有 `voteThreshold` 票或以上的赞成票，该用户将被禁言。投票方式为在原消息下回应表情【续标识】。

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