aboutsummaryrefslogtreecommitdiffstats
path: root/bot/bot.py (unfollow)
Commit message (Collapse)AuthorLines
2021-09-01Remove unnecessary Embed from set_footerGravatar bradtimmis-1/+1
2021-08-31Fix Embed footer text, catch 302 responseGravatar brad90four-2/+2
The unknown error embed was not using the text correctly, using the suggestion from wookie to fix. The "404" response from the dog URL returns 302 instead, changed the elif to check if 302 response is returned.
2021-08-31All ranges are inclusiveGravatar brad90four-2/+2
Changed the range check for the status code. Previously was 599, now 600.
2021-08-31Fix Dog instead of Cat, code error embed updateGravatar brad90four-14/+8
Corrected the URL for the Dog embed (was mistakenly using CAT URL. Created a standalone ERROR_LENGTH_EMBED to send if the code used by the user is not in the range 100, 599. Changed the response status check to include 299 (to be proper).
2021-08-31Add returns after sending embedGravatar brad90four-0/+2
This will avoid sending the error embed even when the status codes are ok.
2021-08-31Remove unnecessary commaGravatar brad90four-1/+1
2021-08-31Add logic to handle acceptable range of codesGravatar brad90four-9/+22
Also updated the line breaks, black was formatting on save locally.
2021-08-31Update docstrings, ' -> ", code styleGravatar brad90four-4/+4
2021-08-30Add requested changesGravatar bradtimmis-10/+22
Now that the branch is correctly tracking only the changes to the file `status_codes.py` the other requests can be addressed. Currently the only change not addressed is to handle the range of responses allowed. My focus will be on lines 45 to 64 for these changes. Issues #428 #500 #608 PR #610
2021-08-30Handle single article resultGravatar brad90four-1/+6
2021-08-30Correct article length check with future proofingGravatar brad90four-1/+1
Co-authored-by: wookie184 <[email protected]>
2021-08-30Only send articles to userGravatar brad90four-2/+2
Added the "kind": "article" parameter to the API request. This should only return articles to the user instead of courses, lessons or quizzes. Also updated the "Here are the top x results" message to handle a variable amount of articles. [Ticket: python-discord#828]
2021-08-30Add baby anaconda to snake hatch (#822)Gravatar Krishna Ramasimha-1/+2
Add baby anaconda to snake hatch, using the anaconda logo