Skip to main content

查询谁@了你或引用了你的消息

Project description

谁问你了?

一个用于查询谁@了你或引用了你的消息的NoneBot2插件

插件名:nonebot-plugin-whoasked

功能

  • 记录群聊中的@消息和引用消息
  • 通过命令查询谁@了你或引用了你的消息
  • 支持配置最大返回消息数量和消息存储天数

安装

使用nb-cli安装:

nb plugin install nonebot-plugin-whoasked

配置

在.env文件中添加以下配置(可选):

# 最大返回消息数量,默认25,最大值100
WHOASKED_MAX_MESSAGES=25

# 消息存储天数,默认3,最大值30
WHOASKED_STORAGE_DAYS=3

使用

在群聊中发送以下命令:

[!WARNING] 此处示例中的"/"为 nb 默认的命令开始标志,若您设置了另外的标志,则请使用您设置的标志作为命令的开头

  • /谁问我了

注意事项

  • 该插件代码基本由AI完成,如有更好的改进建议欢迎提交pr
  • 目前仅使用了OnebotV11适配器+Napcat,在Windows/Linux系统下测试通过,如有兼容性问题/其他适配器的运行情况欢迎提交issue

更新日志

0.2.3

优化日志输出和消息记录

[!IMPORTANT] 自该版本起,消息记录完成后将不再展示完成日志,可自行查看message_records.json文件以确定是否成功记录。

0.2.2

优化引用消息展示形式

[!IMPORTANT] 自该版本起,WHOASKED_MAX_MESSAGES的默认值将更改为25

0.2.0、0.2.1.1

修复了一些体验问题

0.1.3.3

修复已知Bug

0.1.3

更新依赖版本,优化导入

0.1.2

更改插件以符合规范

0.1.1

修改元数据的一处描述错误

0.1.0

初次发布

鸣谢

许可证

MIT

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_whoasked-0.2.3.tar.gz (10.0 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_whoasked-0.2.3-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_whoasked-0.2.3.tar.gz.

File metadata

  • Download URL: nonebot_plugin_whoasked-0.2.3.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.13.3 Windows/11

File hashes

Hashes for nonebot_plugin_whoasked-0.2.3.tar.gz
Algorithm Hash digest
SHA256 565c261de36a7a71b88cc4c2fa76ea8e6419989a8e4a30a6e9f1c58369201852
MD5 3263f3dd9317fc0417871ee6619a6562
BLAKE2b-256 ee2fd015c1b34fbdcfcd692a07191605ac83275a8a8b0ef912d4754b3361dc5f

See more details on using hashes here.

File details

Details for the file nonebot_plugin_whoasked-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_whoasked-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0944bbe15dd545611b45ea67cb8e001ce6a9fda097a849d0cb1a5c748e32ec1e
MD5 b775c230e1204a5e87c138f12c6907c6
BLAKE2b-256 edf39eb3e97e344d8e85043d01cbc6f23a2020906f5e415e921d391e441d16fe

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