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

added roles for admin #70

Closed starlightknown closed 3 years ago

sourcery-ai[bot] commented 3 years ago

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 3.44 ⭐ 3.58 ⭐ 0.14 👎
Method Length 62.47 🙂 68.33 🙂 5.86 👎
Working memory 11.66 😞 11.81 😞 0.15 👎
Quality 63.35% 🙂 62.81% 🙂 -0.54% 👎
Other metrics Before After Change
Lines 443 482 39
Changed files Quality Before Quality After Quality Change
cogs/fun.py 56.31% 🙂 52.85% 🙂 -3.46% 👎
cogs/general.py 73.99% 🙂 72.61% 🙂 -1.38% 👎
cogs/moderation.py 61.84% 🙂 62.94% 🙂 1.10% 👍

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

File Function Complexity Length Working Memory Quality Recommendation
cogs/fun.py fun.rock_paper_scissors 11 🙂 326 ⛔ 15 😞 33.95% 😞 Try splitting into smaller methods. Extract out complex expressions
cogs/moderation.py moderation.kick 6 ⭐ 140 😞 14 😞 51.46% 🙂 Try splitting into smaller methods. Extract out complex expressions
cogs/fun.py fun.ball 2 ⭐ 84 🙂 24 ⛔ 55.11% 🙂 Extract out complex expressions
cogs/moderation.py moderation.ban 3 ⭐ 133 😞 14 😞 55.21% 🙂 Try splitting into smaller methods. Extract out complex expressions
cogs/general.py general.xkcd 3 ⭐ 131 😞 14 😞 55.44% 🙂 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!

Let us know what you think of it by mentioning @sourcery-ai in a comment.