适用于onebot的伪消息插件
Project description
⭐ 介绍
目前仅支持文字格式消息伪造
什么?你也想让你朋友出糗?!来试试伪造他的消息吧,
有啥关于该插件的新想法的,可以提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不受限制) |
⭐ 使用
使用效果图如下
指令如下
效果如下
效果如下
支持识别@xxx的消息,如@群友1 说你好啊|@群友2 我很好!
注意
指令触发方式是
on_message的,不需要加指令前缀
🌙 目前以及未来
- 支持go-cqhttp伪造消息
- 支持Lagrange.core伪造消息
- 支持NapcatQQ伪造消息
- 支持
白名单模式,仅SUPERUSERS可伪造位于白名单账号的消息,建议填入Bot本身和SUPERUSERS的账号 - 支持
图片,卡片等格式消息
喜欢记得点个star哦!⭐
💝 特别鸣谢
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e1460a139e60318b360008e693932f54309e71cb4bb8d27274dbd0bade1cd34
|
|
| MD5 |
a5d31aef9f1b890db3ae9bd12e0b9e9b
|
|
| BLAKE2b-256 |
b30d1d981faa21ef411ec6190a4f99a8490e17b3072f8612d7fdaac87b280a8a
|
File details
Details for the file nonebot_plugin_fakemsg-0.1.9-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_fakemsg-0.1.9-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cc3d0c83880bf7ef86ca5ff4b1d3292fed7f86c1d4cdd60569c6fc5c9431ea0
|
|
| MD5 |
4988d7d89231824469c3d41bf7dd8980
|
|
| BLAKE2b-256 |
b4596a610260204ff4ebd09a7110a9f9abf752f4c7bee2117bc002b028896821
|