aboutsummaryrefslogtreecommitdiffstats
path: root/bot/resources/utilities (follow)
Commit message (Collapse)AuthorAgeLines
* Add rest of python facts from github suggestion thread (#1696)Gravatar David Reilly2025-09-18-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Add rest of facts from GitHub thread Source: https://github.com/python-discord/meta/discussions/93 Edited for grammar, formatting, and inline code. * Add Ned's last name * Update formatting for Ned's fact * Grammar fix * Add a few more facts * Add bool fact * Add object fact * Remove fact about Ned * Update python_facts.txt Remove last line * Incorporate updates from wookie184's code review
* Fix capitalisation of PyPI (#1424)Gravatar wookie1842024-01-04-1/+1
|
* Remove "What third-party library do you wish was in the Python standard ↵Gravatar Bradley Reynolds2024-01-04-1/+0
| | | | library?" from topics (#1423)
* Add lesser yellow to color list (#1245)Gravatar brad90four2023-04-22-0/+1
| | | Co-authored-by: wookie184 <[email protected]>
* Added `Blurple` and ` OG Blurple colours (#1125)Gravatar brad90four2022-10-18-0/+2
| | | | * Added `Blurple` colour * Added `OG Blurple` colour
* Add topics for `#media-processing` channel (#1054)Gravatar DMFriends2022-05-20-0/+11
| | | | | Add topics for `#media-processing` channel Co-authored-by: mina <[email protected]>
* Add topics for `#programming-pedagogy` channelGravatar DMFriends2022-02-16-0/+9
|
* Added even more conversation starter topics. (#1014)Gravatar Xithrius2022-01-21-5/+24
|
* Merge branch 'main' into color-677Gravatar Matteo Bertucci2021-11-14-1/+0
|\
| * Remove the "what's your skill level topic"Gravatar SavagePastaMan2021-11-01-1/+0
| |
* | Resources: add copyright notice to ryanzec_colours.jsonGravatar Matteo Bertucci2021-11-14-1/+1
| |
* | Add source credit and Color.from_rgb method to get discord colorGravatar CyberCitizen012021-11-01-0/+1
| | | | | | | | | | https://github.com/python-discord/sir-lancebot/pull/842/files#r739619938 https://github.com/python-discord/sir-lancebot/pull/842/files#r739295253
* | Merge branch 'main' into color-677Gravatar brad90four2021-10-24-0/+0
|\|
| * Add WTF Python Command (#859)Gravatar brad90four2021-10-22-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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]>
* | Move .json file to correct folderGravatar bradtimmis2021-09-11-0/+1568
|/
* Move practical functions into utilities folderGravatar Janine vN2021-09-05-0/+193
Separates out the useful/practical seasonal bot features from the evergreen folder into a "utilities" folder. Adjusts the paths to resources to reflect the folder move.