Skip to main content

tenko-plugin-repeater

Tenko 的复读机插件。群友开始复读时,Tenko 偶尔跟着复读一句,偶尔打断一下。

群友 A:草
群友 B:草
Tenko: 草

规则

  • 连续出现相同内容、并且来自不同的人,才算一串复读;同一个人连发不算。
  • 达到 2 个人后,每多一个人复读就判断一次:先以 5% 的概率打断,否则按递增的概率跟一句。 跟读概率从 15% 起步,第 3 个人约 28%,第 4 个人约 39%。
  • 每串复读最多出声一次,出声后这个群冷却 10 分钟。
  • 打断时,文字会被打乱字序发出,其他内容换成一句打断语。
  • 支持文字、QQ 表情、商城表情和单张图片。图片按内容比较,只在连续两条都是单张图片时才会下载比对。
  • 命令、@ 或引用回复的消息、超过 100 字的消息,以及 Tenko 其他账号发的消息都不参与。

插件在新群默认开启,群管理员可以用 /关闭 复读机 关掉。

安装

在 WebUI 的插件市场安装,或由 Master 在聊天里 /安装插件 repeater,启用后重启生效。

配置

config/tenko.toml 的 [plugin_config.repeater],也可以在 WebUI 的插件配置里修改:

配置 默认值 说明
min_times 2 几个不同的人发了同一句后开始考虑复读,最小为 2
repeat_probability 0.15 达到 min_times 时跟一句的概率;之后每多一人,“不跟”的概率再乘以 (1 - 它)
interrupt_probability 0.05 每次考虑时打断的概率
cooldown_seconds 600 同一个群出声后的冷却时间
max_length 100 超过这个字数的消息不参与
interrupt_lines ["打断!", "不许复读!", "复读到此为止~"] 无法打乱字序时随机挑一句

Metadata

Release files for tenko-plugin-repeater 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tenko-plugin-repeater 0.1.0
File Size Uploaded Provenance
tenko_plugin_repeater-0.1.0.tar.gz 7.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for tenko-plugin-repeater 0.1.0
File Interpreter ABI Platform
tenko_plugin_repeater-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.9 kB

Release files / tenko_plugin_repeater-0.1.0.tar.gz

Download URL tenko_plugin_repeater-0.1.0.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
803e0da3ce80de0673940675268160c507bdb08cea9e1dc8ddd78ce4ff0b77c4
BLAKE2b-256 checksum
How to use checksums
fcb092ebc99bad95898f2035a17953767b550c81c2c81352816423a298c8a1ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / tenko_plugin_repeater-0.1.0-py3-none-any.whl

Download URL tenko_plugin_repeater-0.1.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec59f298a0cab14f17693e03f91203812b8783ad9bd38e94558adf2965958a19
BLAKE2b-256 checksum
How to use checksums
90cc89cf078dd3c658dd767ab381af6ac6f5179a908f2edcfb15d34944122040
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Security for tenko-plugin-repeater 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tenko_plugin_repeater-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page