Skip to main content

If you plan to ban sticker in your group chat

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-ban-sticker

✨ 如果你希望在你群禁用表情包 ✨

license pypi python

📖 介绍

本插件可以帮助群管在群内禁用表情包。当用户发送表情包时,插件会自动进行处理,测绘表情包并对用户进行禁言。

💿 安装

使用 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

nonebot_plugin_ban_sticker-0.1.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

nonebot_plugin_ban_sticker-0.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_ban_sticker-0.1.1.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_ban_sticker-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e7f2d2080b6384604ddfbdc09f5fc10bc2971813661952b382145b5d97b8516a
MD5 74a80cc4be6c95c688661ace9e9514f2
BLAKE2b-256 e13d256ce8f64d6b5eac920d007a46f1e7ec2b259e316acd31af6c5045093a08

See more details on using hashes here.

File details

Details for the file nonebot_plugin_ban_sticker-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_ban_sticker-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b344d805958091b7e3ac666ec22374f8c63cb6bd0cc269a1a06e766128379ddd
MD5 84ace77c5d69a0b73f5fd5f037e6fd6b
BLAKE2b-256 6e0a72ad1ee458b286e216e3e19aee001f5ca208211188945e6400572742d127

See more details on using hashes here.

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