Bottle post plugin in Nonebot
Project description
Nonebot 漂流瓶插件
-
安装
- 使用
pip install nonebot_plugin_bottle
- 使用
nb plugin install nonebot_plugin_bottle
- 使用
-
指令 (前应带指令前缀)
扔漂流瓶
[文本/图片]寄漂流瓶
[文本/图片] (同扔漂流瓶
,防止指令冲突用)捡漂流瓶
评论漂流瓶
[漂流瓶编号] [文本]举报漂流瓶
[漂流瓶编号]查看漂流瓶
[漂流瓶编号]- SUPERUSER指令:
清空漂流瓶
删除漂流瓶 [漂流瓶编号]
-
功能须知
扔漂流瓶
指令无字数限制,如需要可在代码中修改捡漂流瓶
若捡到的漂流瓶存在回复,则会显示最近三条(默认),使用查看漂流瓶
查看所有回复查看漂流瓶
为保证随机性,无评论时不展示漂流瓶内容,可在代码中修改评论漂流瓶
若机器人有被回复人好友,会发送被回复通知举报漂流瓶
五次(默认)后将自动删除清空漂流瓶
无确认过程,使用需谨慎漂流瓶数据库
存放在data/bottle/data.json
中黑名单群组
可在__init__.py
同级路径config.py
中添加
-
文字审核API配置(可选)
- 在百度智能云中申请
API_KEY
和secret_key
- 在
config.py
中填入即可 - 不配置该项则不进行审核操作
- 在百度智能云中申请
-
已知bug
- 第一次加载该插件时无法正常使用(重启后恢复)
-
效果展示
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
File details
Details for the file nonebot_plugin_bottle-0.1.7.tar.gz
.
File metadata
- Download URL: nonebot_plugin_bottle-0.1.7.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c07668c92ebf35123d64a0edf8feeea407835794b40b7fcf7a11d4b0c7a8ca0c |
|
MD5 | 66062820433276bf408c5ab4334b45c7 |
|
BLAKE2b-256 | 471bf7eb29537202c3871a91d9752700b2a9e3b892ca2ae61a5a5b354ddc5dce |
File details
Details for the file nonebot_plugin_bottle-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_bottle-0.1.7-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41e6d7870a475e54ce38d68847600876f3112016f8c284ae36ef3390da05a754 |
|
MD5 | 4082ee2fa82f7f2e91a5343ad9d9704e |
|
BLAKE2b-256 | c502bf0c6d834e14ad003525b08057ad7cab2849abf13eb1ea6dc1398fbcb105 |