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.2.tar.gz (3.3 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_blocker-0.1.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file nonebot-plugin-blocker-0.1.2.tar.gz.

File metadata

  • Download URL: nonebot-plugin-blocker-0.1.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.7.4 CPython/3.10.6

File hashes

Hashes for nonebot-plugin-blocker-0.1.2.tar.gz
Algorithm Hash digest
SHA256 014a59dfdc7ef585cc42951b9a3996e26d57553eafc2a1144d5f4b9a7ea88cdc
MD5 d457831b4bea2c22efef0db3e808a752
BLAKE2b-256 7f9124ef9640698b13041563f502f90850070795f319d4bb86e9fb81cc813568

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_blocker-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6644d84c10fbd1a065fd48e3ff24c8a732ddab861a8578387e1e96c2f6d5ab11
MD5 695d3a1649fd7cf1d4b32c71d68e2a0e
BLAKE2b-256 2190a388fd7fab15d6218ad20265a9de837f35afe7c6472d338fefec7cafc8b6

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