Skip to main content

适用于onebot的伪消息插件

Project description

nonebot-plugin-fakemsg

⭐基于Nonebot2onebot 11的合并转发伪造消息插件⭐

⭐ 介绍

目前仅支持文字格式消息伪造

什么?你也想让你朋友出糗?!来试试伪造他的消息吧,

有啥关于该插件的新想法的,可以提issue或者pr (>A<)

💿 安装

安装

pip 安装

pip install nonebot-plugin-fakemsg
  • 在nonebot的pyproject.toml中的plugins = ["xxx"]添加此插件

nb-cli安装

nb plugin install nonebot-plugin-fakemsg -U

git clone安装(不推荐)

  • 运行 git clone https://github.com/Cvandia/nonebot-plugin-fakemsg
  • 在运行处 把文件夹nonebot-plugin-fakemsg复制到bot根目录下的src/plugins(或者你创建bot时的其他名称xxx/plugins)
注意

推荐镜像站下载

清华源https://pypi.tuna.tsinghua.edu.cn/simple

阿里源https://mirrors.aliyun.com/pypi/simple/

⚙️ 配置

在env.中添加以下配置

配置 类型 默认值 说明
user_split str " "
message_split str 空格 用于分隔同一个人的消息分隔符
fakesmg_whitelist str 无法用于消息伪造的账号(SUPERUSERS不受限制)

⭐ 使用

使用效果图如下

指令如下

效果图1

效果如下

效果图2

效果如下

效果图3

支持识别@xxx的消息,如@群友1 说你好啊|@群友2 我很好!


注意

指令触发方式是on_message的,不需要加指令前缀

🌙 目前以及未来

  • 支持go-cqhttp伪造消息
  • 支持Lagrange.core伪造消息
  • 支持NapcatQQ伪造消息
  • 支持白名单模式,仅SUPERUSERS可伪造位于白名单账号的消息,建议填入Bot本身和SUPERUSERS的账号
  • 支持图片,卡片等格式消息

喜欢记得点个star哦!⭐

💝 特别鸣谢

  • Nonebot: 本项目的基础,非常好用的聊天机器人框架。
  • Onebot: 统一的聊天机器人应用接口标准。简洁、通用、可扩展,只需使用一套标准即可为各种平台编写聊天机器人

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_fakemsg-0.1.9.tar.gz (5.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_fakemsg-0.1.9-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_fakemsg-0.1.9.tar.gz.

File metadata

  • Download URL: nonebot_plugin_fakemsg-0.1.9.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nonebot_plugin_fakemsg-0.1.9.tar.gz
Algorithm Hash digest
SHA256 5e1460a139e60318b360008e693932f54309e71cb4bb8d27274dbd0bade1cd34
MD5 a5d31aef9f1b890db3ae9bd12e0b9e9b
BLAKE2b-256 b30d1d981faa21ef411ec6190a4f99a8490e17b3072f8612d7fdaac87b280a8a

See more details on using hashes here.

File details

Details for the file nonebot_plugin_fakemsg-0.1.9-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_fakemsg-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 5cc3d0c83880bf7ef86ca5ff4b1d3292fed7f86c1d4cdd60569c6fc5c9431ea0
MD5 4988d7d89231824469c3d41bf7dd8980
BLAKE2b-256 b4596a610260204ff4ebd09a7110a9f9abf752f4c7bee2117bc002b028896821

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