g1331 / xiaomai-bot

以Graia Ariadne框架为基础的战地1QQ机器人
GNU General Public License v3.0
44 stars 6 forks source link

update(BF1): 添加DEBUG用于检查举报时的消息链 #45

Closed g1331 closed 2 months ago

g1331 commented 2 months ago

Summary by Sourcery

通过添加调试日志来增强报告功能,以便在处理报告时检查消息链。

增强功能:

Original summary in English ## Summary by Sourcery Enhance the reporting functionality by adding a debug log to inspect the message chain when handling reports. Enhancements: - Add a debug log statement to output the original and display string of the waiter message for better inspection during report handling.
sourcery-ai[bot] commented 2 months ago

审核指南由 Sourcery 提供

此拉取请求在 bf1_info 模块的 waiter_report_pic 函数中添加了一个调试日志语句。调试日志用于在报告处理中检查消息链。

文件级更改

更改 详情 文件
添加了一个调试日志语句以在报告处理中检查消息链
  • 插入了一个 logger.debug() 调用以打印原始消息及其显示表示
  • 调试语句放置在检查正确组和发送者的条件内
modules/self_contained/bf1_info/__init__.py

提示 - 通过在拉取请求中评论 `@sourcery-ai review` 来触发新的 Sourcery 审核。 - 通过直接回复审核评论继续与 Sourcery 的讨论。 - 您可以随时通过访问您的[仪表板](https://app.sourcery.ai)来更改审核设置: - 启用或禁用 Sourcery 生成的拉取请求摘要或审核指南; - 更改审核语言; - 如果您有任何问题或反馈,您可以随时[联系我们](mailto:support@sourcery.ai)。
Original review guide in English ## Reviewer's Guide by Sourcery This pull request adds a debug log statement to the `waiter_report_pic` function in the `bf1_info` module. The debug log is used to inspect the message chain when a report is being processed. ### File-Level Changes | Change | Details | Files | | ------ | ------- | ----- | | Added a debug log statement to inspect the message chain during report processing |
  • Inserted a logger.debug() call to print the original message and its display representation
  • The debug statement is placed inside the condition checking for the correct group and sender
| `modules/self_contained/bf1_info/__init__.py` | ---
Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.