Skip to main content

CopyCat — 复读机模块

https://www.erisdev.com/#builder 模块构建器全权生成

检测群聊/私聊中连续重复消息,当同一消息被不同人连续发送 2 次(含)以上时自动复读。
同一条消息仅复读一次,不会重复刷屏。

安装

epsdk install CopyCat

配置

在 ErisPulse 配置文件的 [CopyCat] 段中配置:

[CopyCat]
enabled = true           # 是否启用模块
trigger_count = 2        # 触发复读的连续重复次数

默认值:

配置项 默认值 说明
enabled true 是否启用模块
trigger_count 2 触发复读的连续重复次数

使用

无需任何命令,模块自动运行。

示例

用户A: 今天天气真好
用户B: 今天天气真好        ← 不同人重复第 2 次
机器人: 今天天气真好        ← 自动复读(仅这一次)
用户C: 今天天气真好        ← 已复读过,不再复读

行为说明

  • 不同人连续发送:只有不同用户连续发送相同消息才会计数
  • 同一用户多次发送:不算复读,不计数
  • 中间插入其他消息:重置计数,重新开始
  • 已复读的消息:不再复读

卸载

epsdk uninstall CopyCat

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

erispulse_copycat-1.0.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

erispulse_copycat-1.0.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file erispulse_copycat-1.0.1.tar.gz.

File metadata

  • Download URL: erispulse_copycat-1.0.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for erispulse_copycat-1.0.1.tar.gz
Algorithm Hash digest
SHA256 13f35072e4adfe17dd89215ee93e98627328511f373d9cb1c0f93b4bb7aee899
MD5 484523469a97fd5d48a2ff4c52ff8a72
BLAKE2b-256 6220333d51f7f57cff659655a4cb4367dc7bc7931b9a2c2debdbb9f50df2fcf5

See more details on using hashes here.

Provenance

The following attestation bundles were made for erispulse_copycat-1.0.1.tar.gz:

Publisher: python-publish.yml on wsu2059q/ErisPulse-CopyCat

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file erispulse_copycat-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for erispulse_copycat-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bb722a5fd3829777280148b2a0d2bc96cfba156b496856f83b25ad33b553e4bd
MD5 a193a4847c193c7aab3436b02da34e39
BLAKE2b-256 26395fe3bcc3b131a3fc3be515c4e4b0219356458f3daed6498214aab7137061

See more details on using hashes here.

Provenance

The following attestation bundles were made for erispulse_copycat-1.0.1-py3-none-any.whl:

Publisher: python-publish.yml on wsu2059q/ErisPulse-CopyCat

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page