a logger for TRPG
Project description
TRPG Logger
基于 nonebot2,兼容 go-cqhttp 和 mirai-api-http 的 QQ 跑团记录记录器
用来记录跑团记录的 nonebot2 插件,与 https://logpainter.kokona.tech 配合使用。
移植自 Dice-Developer-Team/TrpgLogger
安装
- 使用nb-cli(推荐)
nb plugin install nonebot_plugin_trpglogger
- 使用poetry
poetry add nonebot_plugin_trpglogger
开始使用
.log on
开始记录
.log off
停止记录
一个群同一时间段不能存在两个记录!
TO DO
- 暂停记录
- 多开记录
展开更多
原理
与 TrpgLogger* 一样,使用 AWS S3 进行储存(目前为了与 Logpainter 对接,是直接用溯洄的公共 bucket )。
Bug
- go-cqhttp 无法记录机器人本身发出的消息(即无法记录掷骰)
请确保 go-cqhttp 的enable_self_message
设置为 true - mirai-api-http 无法记录机器人本身发出的消息(即无法记录掷骰)
由于 mirai-api-http 没有message_sent
事件,所以该 bug 暂时无法解决。 - 在记录时间超过 24 小时后,如果上传文件失败会阻塞线程
如何解决: 待定
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
Close
Hashes for nonebot_plugin_trpglogger-0.3.0a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4ad36e27824d116d3c3d828fcedddf67950a7c402b763002eb1ae8a4efc17e8 |
|
MD5 | d670ab573d81865bcbfab098d5cf9587 |
|
BLAKE2b-256 | 6e1c53719bb9f9704c541f848b88aa43b2a9113ed9564f6fdebb4c9b4d6e519e |
Close
Hashes for nonebot_plugin_trpglogger-0.3.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44d56dc9ac831b86aa659c6c7bbf45043317a927b55449bb37cd3d3b73a89d12 |
|
MD5 | a1543a2d8041beba42f988aae0faba68 |
|
BLAKE2b-256 | f931d1290432c12706a5bbfcbe44ff028d6c4c1118bd77611b92f597cf66a591 |