aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* test: UI/UX updates, not tested yetGravatar brad90four2021-11-10-9/+22
|
* fix: change kwarg to color_input instead of extraGravatar bradtimmis2021-11-10-2/+2
|
* fix: handle user hex in embedGravatar bradtimmis2021-11-10-0/+2
|
* fix: replace 'random' in embed with color modeGravatar bradtimmis2021-11-09-1/+1
|
* chore: remove 0 from range and change to "Gravatar bradtimmis2021-11-09-5/+5
|
* chore: re-arrange command invocation with try/exceptGravatar bradtimmis2021-11-09-6/+8
|
* chore: pull hex match out of try/except blockGravatar bradtimmis2021-11-09-2/+1
|
* bug: handle multi word name entries and full inputGravatar bradtimmis2021-11-09-2/+4
|
* fix: add import, handle no name match in embedGravatar bradtimmis2021-11-09-3/+4
| | | | | | | -Added `import string` to use the `string.hexdigits` method to check hex codes. -Handled bug where no name match found would be repeated in the embed in the first line as well as the value for the Name field.
* fix: handle alpha values in hex codeGravatar brad90four2021-11-09-0/+6
| | | Co-authored-by: Sn4u <[email protected]>
* fix: type hinting _rgb_to_cmykGravatar brad90four2021-11-09-1/+1
|
* rename to colourGravatar bradtimmis2021-11-03-0/+0
|
* fix: reduce 'from' importsGravatar bradtimmis2021-11-03-13/+12
|
* fix: have description in-lineGravatar bradtimmis2021-11-03-2/+1
|
* fix: use and handle conversions with name valueGravatar bradtimmis2021-11-03-2/+5
|
* fix: return None if no name match is foundGravatar bradtimmis2021-11-03-3/+3
|
* Fix lint errors of eac9d3b4194004894d4f4e50862f184db695d402Gravatar CyberCitizen012021-11-01-3/+3
|
* Add source credit and Color.from_rgb method to get discord colorGravatar CyberCitizen012021-11-01-3/+4
| | | | | https://github.com/python-discord/sir-lancebot/pull/842/files#r739619938 https://github.com/python-discord/sir-lancebot/pull/842/files#r739295253
* 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.
| | | * Merge pull request #922 from python-discord/ks123/bugfix/display_avatarGravatar Karlis Suvi2021-10-20-1/+1
| | | |\ | | | | | | | | | | Use display_avatar instead of avatar in send_pride_image
| | | | * Use display_avatar instead of avatar in send_pride_imageGravatar Karlis Suvi2021-10-20-1/+1
| | | |/ | | | | | | | | Discord.py 2.0 returns None for avatar if a user has default avatar. `display_avatar` returns always `Asset`.
| | | * Merge pull request #899 from python-discord/fix-issue-898Gravatar Hassan Abouelela2021-10-17-6/+10
| | | |\ | | | | | | | | | | Set `AI.user` to @Sir Lancebot
| | | | * Merge branch 'main' into fix-issue-898Gravatar ChrisJL2021-10-17-17/+572
| | | | |\ | | | | |/ | | | |/|