userbot
userbot copied to clipboard
Fix carbon plugin and remove code language setter and getter functionality with pep8 formatting and clean up.
Refactor carbon plugin to utilize Carbon API for generation and implement auto language detection.
This commit replaces the previous dependency on the Carbon CLI with the Carbon API (https://pypi.org/project/carbon-api/) for code generation within the carbon plugin. Additionally, it removes the update_carbon_lang
and send_carbon_lang
functions, opting for automatic language detection instead.
Hello @i701! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:
- In the file
userbot/helpers/carbon_client.py
:
Line 9:80: E501 line too long (80 > 79 characters) Line 13:80: E501 line too long (90 > 79 characters) Line 14:80: E501 line too long (96 > 79 characters) Line 15:80: E501 line too long (81 > 79 characters)
- In the file
userbot/plugins/carbon.py
:
Line 33:80: E501 line too long (82 > 79 characters) Line 50:80: E501 line too long (90 > 79 characters) Line 103:80: E501 line too long (106 > 79 characters) Line 109:80: E501 line too long (87 > 79 characters)