starlightknown / Cyberon

Cyberon- a discord bot for hackathon servers made by using discord.py
https://starlightknown.github.io/Cyberon/#/
MIT License
19 stars 12 forks source link

Revert "feat:wholesome comforting commands" #90

Closed starlightknown closed 3 years ago

starlightknown commented 3 years ago

Reverts starlightknown/Cyberon#89

sourcery-ai[bot] commented 3 years ago

Sourcery Code Quality Report

✅  Merging this PR will increase code quality in the affected files by 1.25%.

Quality metrics Before After Change
Complexity 9.81 🙂 9.35 🙂 -0.46 👍
Method Length 75.25 🙂 74.00 🙂 -1.25 👍
Working memory 10.05 😞 9.80 🙂 -0.25 👍
Quality 60.22% 🙂 61.47% 🙂 1.25% 👍
Other metrics Before After Change
Lines 935 924 -11
Changed files Quality Before Quality After Quality Change
bot.py 67.74% 🙂 67.13% 🙂 -0.61% 👎
cogs/Help.py 52.72% 🙂 52.72% 🙂 0.00%
cogs/Utils.py 57.06% 🙂 57.43% 🙂 0.37% 👍
cogs/usefullTools/devpost.py 87.70% ⭐

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

File Function Complexity Length Working Memory Quality Recommendation
cogs/Utils.py GeneralCog.avatar 37 ⛔ 304 ⛔ 15 😞 18.40% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
cogs/Utils.py GeneralCog.userinfo 33 ⛔ 373 ⛔ 14 😞 19.60% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
cogs/Help.py HelpCog.help 10 🙂 247 ⛔ 15 😞 37.85% 😞 Try splitting into smaller methods. Extract out complex expressions
bot.py on_message_edit 10 🙂 108 🙂 24 ⛔ 44.05% 😞 Extract out complex expressions
bot.py on_member_remove 11 🙂 150 😞 11 😞 50.41% 🙂 Try splitting into smaller methods. Extract out complex expressions

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!