If you plan to ban sticker in your group chat
Project description
📖 介绍
本插件可以帮助群管在群内禁用表情包。当用户发送表情包时,插件会自动进行处理,测绘表情包并对用户进行禁言。
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot_plugin_ban_sticker
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot_plugin_ban_sticker
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_ban_sticker"]
⚙️ 配置
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
ban_sticker_enable_groups |
否 | [] |
需要启用本插件的群组ID列表,为空列表时表示在所有群组不启用。 |
ban_sticker_wait_time |
否 | 120 |
等待用户撤回表情包的时间,单位为秒。在这个时间内,如果用户撤回了表情包,则不会进行禁言。 |
ban_sticker_ban_time |
否 | 3600 |
禁言时长基数,单位为秒。实际禁言时长会根据用户连续发送的表情包数量的平方进行计算。 |
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
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 nonebot_plugin_ban_sticker-0.1.1.tar.gz.
File metadata
- Download URL: nonebot_plugin_ban_sticker-0.1.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7f2d2080b6384604ddfbdc09f5fc10bc2971813661952b382145b5d97b8516a
|
|
| MD5 |
74a80cc4be6c95c688661ace9e9514f2
|
|
| BLAKE2b-256 |
e13d256ce8f64d6b5eac920d007a46f1e7ec2b259e316acd31af6c5045093a08
|
File details
Details for the file nonebot_plugin_ban_sticker-0.1.1-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_ban_sticker-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b344d805958091b7e3ac666ec22374f8c63cb6bd0cc269a1a06e766128379ddd
|
|
| MD5 |
84ace77c5d69a0b73f5fd5f037e6fd6b
|
|
| BLAKE2b-256 |
6e0a72ad1ee458b286e216e3e19aee001f5ca208211188945e6400572742d127
|