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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_ban_sticker-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0f9aacd2cf9eec112b085e83c2987daee8cf76692d00762df9a1b4f2eceac3bb
MD5 373ed607795ca609cbb2f1839e6e4598
BLAKE2b-256 ce68f53c10602dd0ae4f753cd3c9a517ef2c0cc3a18a7fb0718ff8e47e0fdc3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_ban_sticker-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b23048f79106bbc64f16ba524623c034a2ed9558b8e176692a8407b5f7dacafc
MD5 ff87ad9ae1e3a7f40a3c017b7b525083
BLAKE2b-256 cf93721df8b9174df4436a78d8ba26ae38671ed99f100558741d001c4b9d9e95

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