Skip to main content

基于 NoneBot2 的 插件,用于机器人当前会话闭嘴

Project description

NoneBotPluginLogo

NoneBotPluginText

NoneBot-Plugin-Shutup

雪豹闭嘴

python pdm-managed QQ Chat Group
license pypi pypi download

使用

在群里艾特机器人+雪豹闭嘴 ,即可使机器人暂时屏蔽群内主动响应,任意适配器都可以使用。 ex

仅限主动信息响应屏蔽,如果是其他插件的主动信息功能是无法屏蔽的,例如定时任务

💿 安装

以下提到的方法 任选其一 即可

[推荐] 使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-shutup
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-shutup
pdm
pdm add nonebot-plugin-shutup
poetry
poetry add nonebot-plugin-shutup
conda
conda install nonebot-plugin-shutup

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分的 plugins 项里追加写入

[tool.nonebot]
plugins = [
    # ...
    "nonebot_plugin_shutup"
]

⚙️ 配置

插件开箱即用,所有配置项皆为可选。请按需添加下面的配置项到 .env 文件中

配置项 必填 默认值 类型 说明
shutup_tome True bool 是否需要艾特,设置为False则无需艾特
shutup_name [] List[str] 需要名称,例如xx闭嘴
shutup_time 10 int 闭嘴时间,单位分钟
shutup_permission ["超管"] List[str] 默认只响应超管,如果需要所有人都能使用,设置为空列表[]

不建议

不建议和以下插件混用,因为功能重复

其他

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_shutup-0.0.3.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_shutup-0.0.3-py3-none-any.whl (6.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page