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 空格 用于分隔同一个人的消息分隔符

⭐ 使用

使用效果图如下

指令如下

效果图1

效果如下

效果图2

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


注意

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

🌙 目前以及未来

喜欢记得点个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.8.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

nonebot_plugin_fakemsg-0.1.8-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_fakemsg-0.1.8.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for nonebot_plugin_fakemsg-0.1.8.tar.gz
Algorithm Hash digest
SHA256 d8bc89d2698a3ea5ef3ee1c0e2d6c3757d1df8cd846f4d1543331b1005e99f04
MD5 01e1a4a1cf5ba2720540da002a1470bc
BLAKE2b-256 f7b9fdbc037569e8526912c9faef733b1869ba56633ec39225e2dd881e745856

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_fakemsg-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 fe3497b39f96e50f5e5374d8ee9f3abbebc7da032e5e8e1b26ef3b679b1397ce
MD5 01036fc3337262c650c34995cc64ed76
BLAKE2b-256 8f3d8dc2ea9f479522188fa2c29912fc800354174d66d394af59113d863c665b

See more details on using hashes here.

Supported by

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