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

feat:hackclub hackathon command #79

Closed starlightknown closed 3 years ago

starlightknown commented 3 years ago

closes #ISSUE-NO

What does this PR do?

Some Description of Task to be completed?

How can this be manually tested?

Any background context you want to provide?

What is the relevant issue link?

Screenshots (if appropriate here)

Any Questions you have:

sourcery-ai[bot] commented 3 years ago

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 14.38 🙂 14.14 🙂 -0.24 👍
Method Length 74.84 🙂 71.56 🙂 -3.28 👍
Working memory 10.69 😞 10.44 😞 -0.25 👍
Quality 57.35% 🙂 58.77% 🙂 1.42% 👍
Other metrics Before After Change
Lines 1604 1555 -49
Changed files Quality Before Quality After Quality Change
bot.py 56.57% 🙂 64.89% 🙂 8.32% 👍
cogs/Fun.py 62.17% 🙂 63.60% 🙂 1.43% 👍
cogs/Help.py 47.61% 😞 44.86% 😞 -2.75% 👎
cogs/Utils.py 54.26% 🙂 53.51% 🙂 -0.75% 👎
cogs/usefullTools/dbIntegration.py 59.34% 🙂 59.71% 🙂 0.37% 👍

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 41 ⛔ 320 ⛔ 15 😞 16.65% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
cogs/Utils.py GeneralCog.userinfo 38 ⛔ 380 ⛔ 14 😞 17.58% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
cogs/Help.py HelpCog.help 15 🙂 301 ⛔ 16 ⛔ 30.12% 😞 Try splitting into smaller methods. Extract out complex expressions
cogs/Fun.py FunCog.animal_facts 17 🙂 192 😞 16 ⛔ 34.37% 😞 Try splitting into smaller methods. Extract out complex expressions
cogs/Fun.py FunCog.asciify_message 14 🙂 136 😞 15 😞 43.36% 😞 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!