Darkempire78 / Music-Discord-Bot

A music Discord bot with more than 30+ commands which allows to play music on your server efficiently. Supports Youtube, Spotify, Deezer and Soundcloud links. Skips intros and blanks in the music with Sponsorblock.
https://top.gg/bot/796749718217555978
GNU General Public License v3.0
95 stars 52 forks source link

Fix Move and remove Errors #15

Closed shamspias closed 2 years ago

shamspias commented 3 years ago

Solve for issues #13 and issues #14

sourcery-ai[bot] commented 3 years ago

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 7.70 ⭐ 7.39 ⭐ -0.31 👍
Method Length 86.75 🙂 82.75 🙂 -4.00 👍
Working memory 13.14 😞 13.15 😞 0.01 👎
Quality 44.93% 😞 45.95% 😞 1.02% 👍
Other metrics Before After Change
Lines 108 114 6
Changed files Quality Before Quality After Quality Change
Cogs/move.py 39.68% 😞 39.65% 😞 -0.03% 👎
Cogs/removeRemoverange.py 51.49% 🙂 54.43% 🙂 2.94% 👍

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

File Function Complexity Length Working Memory Quality Recommendation
Cogs/move.py CogMove.move 11 🙂 371 ⛔ 16 ⛔ 31.88% 😞 Try splitting into smaller methods. Extract out complex expressions
Cogs/removeRemoverange.py CogRemoveRemoverange.remove 5 ⭐ 231 ⛔ 13 😞 46.16% 😞 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!