复读机模块 - 检测群聊/私聊中连续重复消息并自动复读(同一条消息仅复读一次)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
790407183aa9d0bacf816fb432c7cdf3255472598ab74c1b3d1c0c4538cfb509
|
|
| MD5 |
455ec6f193e83e781d5c0f38566be5c3
|
|
| BLAKE2b-256 |
e17b5f91ba7da2c9b8d79e8d8a8319a606e6a3d225ad4d529e39d38f689767c7
|
Provenance
The following attestation bundles were made for erispulse_copycat-1.0.0.tar.gz:
Publisher:
python-publish.yml on wsu2059q/ErisPulse-CopyCat
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
erispulse_copycat-1.0.0.tar.gz -
Subject digest:
790407183aa9d0bacf816fb432c7cdf3255472598ab74c1b3d1c0c4538cfb509 - Sigstore transparency entry: 1868090312
- Sigstore integration time:
-
Permalink:
wsu2059q/ErisPulse-CopyCat@bdf0eb05e9a0664678fe78ff0cf8c0b40b32c445 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/wsu2059q
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@bdf0eb05e9a0664678fe78ff0cf8c0b40b32c445 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file erispulse_copycat-1.0.0-py3-none-any.whl.
File metadata
- Download URL: erispulse_copycat-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0965592f6982d2474c94ffb2351f08633c6371a0dc6b8da4b022e35d469e90a
|
|
| MD5 |
e97fcb5828c318db64a46bca5546f47f
|
|
| BLAKE2b-256 |
47d234507d03645a64abf5945ca0663c1bdab9fe41e545e109cb13ffe78c535a
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
erispulse_copycat-1.0.0-py3-none-any.whl -
Subject digest:
c0965592f6982d2474c94ffb2351f08633c6371a0dc6b8da4b022e35d469e90a - Sigstore transparency entry: 1868090325
- Sigstore integration time:
-
Permalink:
wsu2059q/ErisPulse-CopyCat@bdf0eb05e9a0664678fe78ff0cf8c0b40b32c445 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/wsu2059q
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@bdf0eb05e9a0664678fe78ff0cf8c0b40b32c445 -
Trigger Event:
workflow_dispatch
-
Statement type: