mrismanaziz / Man-Userbot

This is UserBot Telegram with many cool modules. Written in Python with Telethon and Py-Tgcalls.
https://t.me/Lunatic0de
Other
221 stars 1.65k forks source link

Man-Userbot v3.1.3 Updates #143

Closed mrismanaziz closed 2 years ago

sourcery-ai[bot] commented 2 years ago

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 17.93 🙂 22.42 😞 4.49 👎
Method Length 116.66 🙂 119.36 🙂 2.70 👎
Working memory 12.19 😞 12.78 😞 0.59 👎
Quality 47.48% 😞 45.48% 😞 -2.00% 👎
Other metrics Before After Change
Lines 5087 5214 127
Changed files Quality Before Quality After Quality Change
userbot/init.py 32.82% 😞 31.52% 😞 -1.30% 👎
userbot/main.py 45.68% 😞 21.19% ⛔ -24.49% 👎
userbot/clients/init.py % % %
userbot/clients/client_list.py 67.19% 🙂 68.07% 🙂 0.88% 👍
userbot/clients/logger.py 51.29% 🙂 62.05% 🙂 10.76% 👍
userbot/clients/startup.py 28.89% 😞 28.76% 😞 -0.13% 👎
userbot/modules/admin.py 57.12% 🙂 56.36% 🙂 -0.76% 👎
userbot/modules/carbon.py 54.75% 🙂 56.75% 🙂 2.00% 👍
userbot/modules/funmemes.py 73.29% 🙂 73.33% 🙂 0.04% 👍
userbot/modules/gban.py 35.89% 😞 35.01% 😞 -0.88% 👎
userbot/modules/globalban.py 48.84% 😞 48.00% 😞 -0.84% 👎
userbot/modules/offline.py 32.09% 😞 32.42% 😞 0.33% 👍
userbot/modules/quotly.py 53.79% 🙂 17.00% ⛔ -36.79% 👎
userbot/modules/stickers.py 32.73% 😞 28.88% 😞 -3.85% 👎
userbot/modules/updater.py 45.01% 😞 45.03% 😞 0.02% 👍
userbot/modules/vcplugin.py 36.37% 😞 36.45% 😞 0.08% 👍

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

File Function Complexity Length Working Memory Quality Recommendation
userbot/modules/stickers.py kang 105 ⛔ 1175 ⛔ 24 ⛔ 2.36% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
userbot/modules/vcplugin.py vc_vplay 49 ⛔ 745 ⛔ 34 ⛔ 3.85% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
userbot/modules/offline.py afk_on_pm 42 ⛔ 329 ⛔ 19 ⛔ 12.38% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
userbot/modules/vcplugin.py vc_play 29 😞 471 ⛔ 25 ⛔ 12.53% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
userbot/modules/quotly.py quott_ 44 ⛔ 297 ⛔ 16 ⛔ 15.42% ⛔ Refactor to reduce nesting. 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!