aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | | | * | | | fix: invoke without command, hsv fixGravatar bradtimmis2021-10-29-8/+13
| | | | | | | |
| | | | * | | | fix: iterate through tupleGravatar brad90four2021-10-29-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Sn4u <[email protected]>
| | | | * | | | chore: add some conditions for the embed variablesGravatar bradtimmis2021-10-29-2/+11
| | | | | | | |
| | | | * | | | fix: correct ranges and logic for color error handlingGravatar bradtimmis2021-10-29-10/+11
| | | | | | | |
| | | | * | | | fix: bug in cmyk and hsvGravatar bradtimmis2021-10-28-10/+12
| | | | | | | |
| | | | * | | | fix: add periods to error messagesGravatar bradtimmis2021-10-28-4/+4
| | | | | | | |
| | | | * | | | fix: added error handling and other cleanup choresGravatar bradtimmis2021-10-28-6/+30
| | | | | | | |
| | | | * | | | chore: change COLOUR_MAPPING to colour_mappingGravatar brad90four2021-10-28-6/+6
| | | | | | | |
| | | | * | | | chore: correct capitalization of command name in embedGravatar brad90four2021-10-28-2/+7
| | | | | | | |
| | | | * | | | chore: change to tuples, various suggested changesGravatar brad90four2021-10-28-30/+30
| | | | | | | |
| | | | * | | | chore: general code fixes and cleanupGravatar bradtimmis2021-10-28-62/+29
| | | | | | | |
| | | | * | | | chore: move send_colour_response to top of classGravatar brad90four2021-10-27-32/+32
| | | | | | | |
| | | | * | | | chore: embed format tweakingGravatar brad90four2021-10-27-2/+2
| | | | | | | |
| | | | * | | | fix: testing fixesGravatar bradtimmis2021-10-27-11/+10
| | | | | | | |
| | | | * | | | chore: code cleanupGravatar brad90four2021-10-26-66/+86
| | | | | | | |
| | | | * | | | Merge branch 'color-677' of https://github.com/brad90four/sir-lancebot into ↵Gravatar brad90four2021-10-26-764/+19302
| | | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | color-677
| | | | | * | | | chore: code cleanupGravatar bradtimmis2021-10-26-15/+4
| | | | | | | | |
| | | | | * | | | chore: fix import order due to isortGravatar bradtimmis2021-10-25-1/+1
| | | | | | | | |
| | | | | * | | | Merge branch 'color-677' of github.com:brad90four/sir-lancebot into color-677Gravatar bradtimmis2021-10-25-479/+19156
| | | | | |\ \ \ \
| | | | | | * \ \ \ Merge branch 'main' into color-677Gravatar brad90four2021-10-24-479/+19156
| | | | | | |\ \ \ \ | |_|_|_|_|_|/ / / / |/| | | | | | | | |
* | | | | | | | | | Merge pull request #926 from python-discord/tools/isortGravatar wookie1842021-10-24-98/+135
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Add Isort to our toolchain
| * | | | | | | | | | CI: only check licenses of dev depsGravatar Matteo Bertucci2021-10-22-2/+4
| | | | | | | | | | |
| * | | | | | | | | | Precommit: add an isort hookGravatar Matteo Bertucci2021-10-22-0/+5
| | | | | | | | | | |
| * | | | | | | | | | Isort: give the codebase a sortGravatar Matteo Bertucci2021-10-22-28/+8
| | | | | | | | | | |
| * | | | | | | | | | Add ISort to our toolchainGravatar Matteo Bertucci2021-10-22-68/+118
|/ / / / / / / / / /
* | | | | | | | | | Add WTF Python Command (#859)Gravatar brad90four2021-10-22-0/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add WTF Python Command * Fix grammar in docstrings, remove redundant variable, remove the use of a wrapper * Fix indentation issues and make use of triple quotes * Update docstrings and remove redundant list() * Change minimum certainty to 75. * Make 'make_embed' function a non async function * Try to unload WTFPython Extension if max fetch requests hit i.e. 3 else try to load the extension. * Correct log messages. * Make flake8 happy :D * Remove redundant class attributes and async functions. * Apply requested grammar and style changes. * Fix unload and load extension logic. * Fix typo in `WTF_PYTHON_RAW_URL` * Changed fuzzy_wuzzy to rapidfuzz Since rapidfuzz also has an extractOne method, this should be a straight replacement with the import statement. * Move wtf_python.py to bot/exts/utilities, flake8 Moved the file to the correct location after merge with main, made changes from the last open suggestions from the previous PR, had to make WTF lowercase to pass flake8 on lines 54 and 118. * Fix trailing commas and long lines * # This is a combination of 3 commits. # This is the 1st commit message: Squashing small commits Small changes and fixes -Added "the" to setup docstring -Fixed typo for mis-matched WTF and wtf in get_wtf_python_readme -Fixed ext location -Added more information to fuzzy_match_header docstring regarding the MINIMUM_CERTAINTY and what the score / value represents. Add wildcard to capture unused return Updated MINIMUM_CERTAINTY to 75 Change MINIMUM_CERTAINTY to 50 Squash commits from Bluenix suggestions Fix docstring for fuzzy_match_header Swap if / else for match Fix functools import Rename get_wtf_python_readme to fetch_readme Collapse self.headers into one line Fix docstring for fuzzy_match_header Swap if / else for match # This is the commit message #2: Fix functools import # This is the commit message #3: Rename get_wtf_python_readme to fetch_readme * Squashing commits Squashing small commits Small changes and fixes -Added "the" to setup docstring -Fixed typo for mis-matched WTF and wtf in get_wtf_python_readme -Fixed ext location -Added more information to fuzzy_match_header docstring regarding the MINIMUM_CERTAINTY and what the score / value represents. Add wildcard to capture unused return Updated MINIMUM_CERTAINTY to 75 Change MINIMUM_CERTAINTY to 50 Squash commits from Bluenix suggestions Fix docstring for fuzzy_match_header Swap if / else for match Fix functools import Rename get_wtf_python_readme to fetch_readme Collapse self.headers into one line Fix docstring for fuzzy_match_header Swap if / else for match Fix functools import Rename get_wtf_python_readme to fetch_readme Collapse self.headers into one line Fix type hints with dict Add match comment for clarity * Add debug logs, and send embed * Add markdown file creation Big change here is to create a .md file based on the matched header. I save the raw text as a class attribute, then slice it based on the index returned by the .find() method for the header, and the separator "/n---/n". * Move the list(map(str.strip , ...) to for loop * Remove line * Use StringIO for file creation * Update file creation with StringIO * Remove embed file preview * chore: update wtf_python docstring * chore: change regex to search, remove file preview * feat: update caching as recommended Minor fixes to import statements as well. Co-authored-by: Bluenix2 <[email protected]> * chore: remove logging statements * feat: scheduled task for fetch_readme * chore: fix hyperlink, remove dead code * fix: capitalization clean up * chore: remove unused code * chore: remove more unused code * feat: add light grey logo image in embed * feat: add light grey image * chore: remove debug log message * feat: add found search result header * feat: limit user query to 50 characters * cleanup: remove debug logging * fix: restructure if not match statement Co-authored-by: Bluenix <[email protected]> Co-authored-by: Shivansh-007 <[email protected]> Co-authored-by: Shivansh-007 <[email protected]> Co-authored-by: Bluenix2 <[email protected]> Co-authored-by: Xithrius <[email protected]>
* | | | | | | | | | Merge pull request #925 from python-discord/bump-pip-licensesGravatar Matteo Bertucci2021-10-21-325/+405
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Bump pip licenses
| * | | | | | | | | | Bump pip licensesGravatar Chris Lovering2021-10-21-325/+405
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pip licenses used to use an internal method of pip, which got removed and caused errors in any runs. The newer version, which this commit bumps it too, now uses another method.
| | | | | * / / / / fix: finish restructure with all functionalityGravatar bradtimmis2021-10-25-329/+66
| | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added commands for `name` and `random`. Added the ability to look up the color name based on the hex value. Co-authored-by: Mohammad Rafivulla <[email protected]> Co-authored-by: Vivaan Verma <[email protected]>
| | | | | * | | | temp: add restructured layout in commentsGravatar bradtimmis2021-10-24-0/+471
| | | | | | | | |
| | | | | * | | | fix: merge conflictsGravatar bradtimmis2021-10-24-488/+1164
| | | | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge branch 'color-677' of github.com:brad90four/sir-lancebot into color-677
| | | | | * | | | | temp: add restructured template as commentsGravatar bradtimmis2021-10-24-1/+136
| | | | | | | | | |
| | | | * | | | | | Merge branch 'color-677' of https://github.com/brad90four/sir-lancebot into ↵Gravatar brad90four2021-10-05-17/+1164
| | | | |\ \ \ \ \ \ | | | | | |/ / / / / | | | | |/| / / / / | | | | | |/ / / / color-677
| | | | | * | | | chore: remove single-use constant for json pathGravatar brad90four2021-10-05-1/+1
| | | | | | | | |
| | | | | * | | | chore: set thumbnail image to 80x80Gravatar bradtimmis2021-10-05-1/+1
| | | | | | | | |
| | | | | * | | | chore: remove single-use constant for json pathGravatar brad90four2021-10-05-2/+1
| | | | | | | | |
| | | | | * | | | chore: remove doubled new line in ERROR_MSGGravatar brad90four2021-10-05-5/+5
| | | | | | | | |
| | | | | * | | | chore: make cmyk_to_rgb def multilineGravatar brad90four2021-10-05-1/+5
| | | | | | | | |
| | | | | * | | | chore: create subcommands for sending embedGravatar bradtimmis2021-10-05-13/+13
| | | | | | | | |
| | | | | * | | | chore: small code fixes and cleanupGravatar brad90four2021-10-05-15/+8
| | | | | | | | |
| | | | | * | | | fix: remove `get_color_fields` call in color_embedGravatar brad90four2021-10-05-2/+1
| | | | | | | | |
| | | | | * | | | fix: restructure scriptGravatar brad90four2021-10-05-110/+115
| | | | | | | | |
| | | | | * | | | fix: create subcommands and restructure scriptGravatar brad90four2021-10-05-36/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -Makes "main" function `color_embed` that takes an rgb tuple, calls `all_colors` to get all other color types, gets a name from the hex color, creates embed, calls `create_thumbnail` to get image, and then sends main embed. -Makes functions `xxx_to_rgb` functions to call `color_embed` -Creates new `hex_to_rgb` function -TODO: test all functions and continue restructure.
| | | | | * | | | fix: remove redundant rgb_color variableGravatar bradtimmis2021-10-05-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The conversion functions from hsv, hsl and cmyk now return r, g, b instead of a variable rgb_tuple.
| | | | | * | | | Add all color modes and name matchingGravatar bradtimmis2021-10-05-36/+104
| | | | | | | | |
| | | | | * | | | Continue work on hex and rgb color commandsGravatar bradtimmis2021-10-05-18/+69
| | | | | | | | |
| | | | | * | | | Reword json file variables and mappingGravatar bradtimmis2021-10-05-5/+5
| | | | | | | | |
| | | | | * | | | Fix Flake8 spacing errorsGravatar brad90four2021-10-05-8/+8
| | | | | | | | |
| | | | | * | | | Load json file onceGravatar bradtimmis2021-10-05-5/+4
| | | | | | | | |
| | | | | * | | | Remove placeholder commentGravatar bradtimmis2021-10-05-2/+0
| | | | | | | | |