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.2.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.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_ban_sticker-0.1.2.tar.gz
Algorithm Hash digest
SHA256 316bcb24f11d914df4ad7da0782f16095e55161252381942333b6fe7bc5584ab
MD5 dd179c9b2bf0855eee9975f2364bc64e
BLAKE2b-256 3892697c2870e78f56d756a0e43ce22c2de58f6bc20f3e901c2b3eee01422d11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_ban_sticker-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4d69bb2f22bc6c339d626ce11a0d819ae00204b11e643818e79affd60880182c
MD5 474d3d5ff886cbc44ab162835b1cf6dc
BLAKE2b-256 97641315bac4c3fefcd0c29e54338b02f1f4d2ae6d1646f6a01af86d76d600a9

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