Skip to main content

Message Blocker

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-blocker

✨ NoneBot Plugin Blocker ✨

license pypi python

这是一个 nonebot2 插件项目,用于分群配置机器人的开启关闭

📖 介绍

使用.bot on在该群开启bot 使用.bot off在该群关闭bot

💿 安装

使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-blocker

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

plugins = ["nonebot-plugin-blocker"]

配置

在 nonebot2 根目录下面的data目录里找到blocker 编辑里面的blocker_reply

{
    "reply_on":{
        "type":"text"
        "data":{
            "text":"在本群开启"
        }
    },
    "reply_off":{
        "type":"text"
        "data":{
            "text":"在本群关闭"
        }
    }
}

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-blocker-0.1.1.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_blocker-0.1.1-py3-none-any.whl (4.0 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