aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/status_codes.py (follow)
Commit message (Collapse)AuthorAgeLines
* Move game and fun commands to Fun folder, fix ddgGravatar Janine vN2021-09-05-87/+0
| | | | | | | | | | | This moves all the fun commands and games into the fun folder. This commit also makes changes to the duck_game. It was setting a footer during an embed init, which is no longer possible with the version of d.py we use. Additionally, an issue with editing an embed that had a local image loaded. The workaround for the time being is to update the message, not the embed.
* Handle status not found with 404 pictureGravatar bradtimmis2021-09-01-1/+8
| | | | | Hard-coded in the appropriate 404 jpgs for wehn a status code does not exist from the dog or cat urls.
* Remove unnecessary Embed from set_footerGravatar bradtimmis2021-09-01-1/+1
|
* Fix Embed footer text, catch 302 responseGravatar brad90four2021-08-31-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.
* All ranges are inclusiveGravatar brad90four2021-08-31-2/+2
| | | | | Changed the range check for the status code. Previously was 599, now 600.
* Fix Dog instead of Cat, code error embed updateGravatar brad90four2021-08-31-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).
* Add returns after sending embedGravatar brad90four2021-08-31-0/+2
| | | | | This will avoid sending the error embed even when the status codes are ok.
* Remove unnecessary commaGravatar brad90four2021-08-31-1/+1
|
* Add logic to handle acceptable range of codesGravatar brad90four2021-08-31-9/+22
| | | | Also updated the line breaks, black was formatting on save locally.
* Update docstrings, ' -> ", code styleGravatar brad90four2021-08-31-4/+4
|
* Add requested changesGravatar bradtimmis2021-08-30-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
* Update branch with mainGravatar bradtimmis2021-08-30-10/+18
|\
| * Forward some status dog codes to status cat insteadGravatar Chris2021-05-25-0/+5
| | | | | | | | | | These status dog codes aren't server-friendly, so we use status cat instead.
| * remove unnecessary checkGravatar Icebluewolf2021-05-19-3/+1
| |
| * Merge branch 'main' into http_status_command_randomnessGravatar Icebluewolf2021-05-17-10/+12
| |\
| | * chore: Prefer double quotes over single quotesGravatar ToxicKidz2021-05-04-8/+8
| | |
| | * chore: switch commands.Bot typehints to bot.bot's BotGravatar vcokltfre2021-04-19-2/+3
| | |
| * | Remove comments and update docstringsGravatar Icebluewolf2021-05-14-7/+3
| | | | | | | | | Co-authored-by: Joe Banks <[email protected]>
| * | Fixes linting issue and improves randomness selection.Gravatar Ice Wolfy2021-05-14-11/+11
| | |
| * | Added randomness to cat or dog when not specifiedGravatar Ice Wolfy2021-05-14-1/+0
| | |
| * | Added randomness to cat or dog when not specifiedGravatar Ice Wolfy2021-05-14-6/+16
| |/
| * make invoke_help_command only take ctxGravatar ToxicKidz2021-03-13-1/+1
| |
| * Make flake8 happy.Gravatar ToxicKidz2021-03-12-0/+1
| |
| * make utility invoke_help_command functionGravatar ToxicKidz2021-03-12-2/+2
| |
| * change ctx.send_help to ctx.invoke(help_command)Gravatar ToxicKidz2021-03-11-1/+2
| | | | | | | | ;
* | Numerous syntax and bug fixesGravatar sam-heller2021-03-03-20/+16
| |
* | Return 404 Floof embed on invalid status codeGravatar sam-heller2021-03-03-4/+12
| |
* | Removed HTTPStatus Dependency, enable broader Status Code SupportGravatar sam-heller2021-03-03-52/+28
|/
* Make use of constants in the urlGravatar Shivansh-0072021-02-04-12/+11
|
* Add not Implemented error handler for .status cat commandGravatar Shivansh-0072021-02-02-0/+3
|
* Add similar repsonse.status check to too, and instead of ValueError raise ↵Gravatar Shivansh-0072021-02-01-4/+12
| | | | NotImplemented error if the status is not implemented yet but is a valid status code
* rename the cog to HTTPStatusCodesGravatar Shivansh-0072021-02-01-3/+3
|
* Remove unused importsGravatar Shivansh-0072021-01-31-2/+0
|
* Add http status dog and add http_cat to group http_statusGravatar Shivansh-0072021-01-28-0/+63