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_template"]

⚙️ 配置

配置项 必填 默认值 说明
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.0.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.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_ban_sticker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0d455690666042bc628c55a63fcf99ca7a79a8cbd1815e1a58b0f69913edbe4b
MD5 56922e81f6ddca467cffa64077f0d2f8
BLAKE2b-256 6e69abf2a0fcd6aa1dcaa693680a0ed68b18369fd0a4b8380a7e749568780ec6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_ban_sticker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d87861233e84d5d0acce04fda6787ffe5eb283f2b733dd3b04f3d140de4b0b7
MD5 774fd68ea51f65e9bc8b3a80236ad4b8
BLAKE2b-256 42c678dde10f8f52dc4e50cf6dc92c8c67d363f4077a0bbdc19d63c560997e98

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