Skip to main content

Eavesdropper in NoneBot2

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-eavesdropper

✨ NoneBot 消息监听插件 ✨

license pypi python nonebot onebot

📖 介绍

转发指定会话消息给SUPERUSER

💿 安装

nb-cli安装, 包管理器安装 二选一

使用 nb-cli 安装 (暂未支持)

在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装

nb plugin install nonebot-plugin-eavesdropper
使用包管理器安装

在 nonebot2 项目的插件目录下, 打开命令行,

根据你使用的包管理器, 输入相应的安装命令

pip
pip install nonebot-plugin-eavesdropper
pdm
pdm add nonebot-plugin-eavesdropper
poetry
poetry add nonebot-plugin-eavesdropper
conda
conda install nonebot-plugin-eavesdropper

打开 bot项目下的 pyproject.toml 文件,

在其 plugins 里加入 nonebot_plugin_eavesdropper

plugins = ["nonebot_plugin_eavesdropper"]

🎉 使用

指令表

  监听私聊 qq qq1 qq2 ...
  监听群聊 qq qq1 qq2 ...
  监听私聊 all
  监听群聊 all
  取消监听私聊 qq qq1 qq2 ...
  取消监听群聊 qq qq1 qq2 ...
  取消监听私聊 all
  取消监听群聊 all

  查看监听列表

  传话私聊 qq XXXXXX
  传话群聊 qq XXXXXX

TODO

  • 转发消息至指定群聊
  • 跨平台支持

⚠️ 注意事项

本插件目前仅支持 nonebot2 + onebot.v11 的使用方式, 一切非此二者结合的使用方式造成的问题请自行探索解决, 或者使用其他插件

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_eavesdropper-0.0.8.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

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