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 |
["打断!", "不许复读!", "复读到此为止~"] |
无法打乱字序时随机挑一句 |
图标
icon.png 由 Phosphor Icons 的 repeat(fill)渲染而来,Phosphor Icons 以 MIT 许可证发布。
Metadata
Release files for tenko-plugin-repeater 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tenko_plugin_repeater-0.1.1.tar.gz | 12.0 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tenko_plugin_repeater-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.4 kB
Release files / tenko_plugin_repeater-0.1.1.tar.gz
| Download URL | tenko_plugin_repeater-0.1.1.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52dd4796d9a3b318ff382104d32ffa041ce3a008cb343069664e8e39b9d5d85f
|
|
BLAKE2b-256 checksum How to use checksums |
96ff38ce2cd3161ca402376aa51ce61c00e99e23ec8dd25c59651fd9be26b33b
|
| 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 logRelease files / tenko_plugin_repeater-0.1.1-py3-none-any.whl
| Download URL | tenko_plugin_repeater-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
198bb7f5996ac2864bbb430e5035560875930307525b5056c3d33ebca95225dc
|
|
BLAKE2b-256 checksum How to use checksums |
3c45284e125188ea5c6ef53d845e7b563ea2397f8715de2743890a8de140d746
|
| 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 logSecurity for tenko-plugin-repeater 0.1.1
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.
Attestation for tenko_plugin_repeater-0.1.1.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 logA 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.