A-kirami / nonebot-plugin-moyu

nonebot2 摸鱼日历
MIT License
14 stars 5 forks source link

🐛 修复发送图片失败的问题 #7

Closed A-kirami closed 1 year ago

A-kirami commented 1 year ago

这个 PR 带来了什么样的更改?

这个 PR 是否存在破坏性变更?

描述

图片从 gocq 下载转为插件自身下载

动机和背景

其他信息

检查工作

sourcery-ai[bot] commented 1 year ago

Sourcery Code Quality Report

❌  Merging this PR will decrease code quality in the affected files by 0.19%.

Quality metrics Before After Change
Complexity 7.65 ⭐ 7.53 ⭐ -0.12 👍
Method Length 62.40 🙂 63.40 🙂 1.00 👎
Working memory 7.89 🙂 7.97 🙂 0.08 👎
Quality 67.52% 🙂 67.33% 🙂 -0.19% 👎
Other metrics Before After Change
Lines 106 109 3
Changed files Quality Before Quality After Quality Change
nonebot_plugin_moyu/__init__.py 67.52% 🙂 67.33% 🙂 -0.19% 👎

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
nonebot_plugin_moyu/__init__.py moyu 19 😞 163 😞 13 😞 39.22% 😞 Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
nonebot_plugin_moyu/__init__.py handle_time 6 ⭐ 128 😞 8 🙂 63.74% 🙂 Try splitting into smaller methods

Legend and Explanation

The emojis denote the absolute quality of the code:

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Help us improve this quality report!