Skip to main content

复读机模块 - 检测群聊/私聊中连续重复消息并自动复读(同一条消息仅复读一次)

Project description

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

Project details


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.0.tar.gz (3.1 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.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: erispulse_copycat-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for erispulse_copycat-1.0.0.tar.gz
Algorithm Hash digest
SHA256 790407183aa9d0bacf816fb432c7cdf3255472598ab74c1b3d1c0c4538cfb509
MD5 455ec6f193e83e781d5c0f38566be5c3
BLAKE2b-256 e17b5f91ba7da2c9b8d79e8d8a8319a606e6a3d225ad4d529e39d38f689767c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for erispulse_copycat-1.0.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for erispulse_copycat-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0965592f6982d2474c94ffb2351f08633c6371a0dc6b8da4b022e35d469e90a
MD5 e97fcb5828c318db64a46bca5546f47f
BLAKE2b-256 47d234507d03645a64abf5945ca0663c1bdab9fe41e545e109cb13ffe78c535a

See more details on using hashes here.

Provenance

The following attestation bundles were made for erispulse_copycat-1.0.0-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.

Supported by

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