Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Move game and fun commands to Fun folder, fix ddg | 2021-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 picture | 2021-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_footer | 2021-09-01 | -1/+1 | |
| | ||||
* | Fix Embed footer text, catch 302 response | 2021-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 inclusive | 2021-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 update | 2021-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 embed | 2021-08-31 | -0/+2 | |
| | | | | | This will avoid sending the error embed even when the status codes are ok. | |||
* | Remove unnecessary comma | 2021-08-31 | -1/+1 | |
| | ||||
* | Add logic to handle acceptable range of codes | 2021-08-31 | -9/+22 | |
| | | | | Also updated the line breaks, black was formatting on save locally. | |||
* | Update docstrings, ' -> ", code style | 2021-08-31 | -4/+4 | |
| | ||||
* | Add requested changes | 2021-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 main | 2021-08-30 | -10/+18 | |
|\ | ||||
| * | Forward some status dog codes to status cat instead | 2021-05-25 | -0/+5 | |
| | | | | | | | | | | These status dog codes aren't server-friendly, so we use status cat instead. | |||
| * | remove unnecessary check | 2021-05-19 | -3/+1 | |
| | | ||||
| * | Merge branch 'main' into http_status_command_randomness | 2021-05-17 | -10/+12 | |
| |\ | ||||
| | * | chore: Prefer double quotes over single quotes | 2021-05-04 | -8/+8 | |
| | | | ||||
| | * | chore: switch commands.Bot typehints to bot.bot's Bot | 2021-04-19 | -2/+3 | |
| | | | ||||
| * | | Remove comments and update docstrings | 2021-05-14 | -7/+3 | |
| | | | | | | | | | Co-authored-by: Joe Banks <[email protected]> | |||
| * | | Fixes linting issue and improves randomness selection. | 2021-05-14 | -11/+11 | |
| | | | ||||
| * | | Added randomness to cat or dog when not specified | 2021-05-14 | -1/+0 | |
| | | | ||||
| * | | Added randomness to cat or dog when not specified | 2021-05-14 | -6/+16 | |
| |/ | ||||
| * | make invoke_help_command only take ctx | 2021-03-13 | -1/+1 | |
| | | ||||
| * | Make flake8 happy. | 2021-03-12 | -0/+1 | |
| | | ||||
| * | make utility invoke_help_command function | 2021-03-12 | -2/+2 | |
| | | ||||
| * | change ctx.send_help to ctx.invoke(help_command) | 2021-03-11 | -1/+2 | |
| | | | | | | | | ; | |||
* | | Numerous syntax and bug fixes | 2021-03-03 | -20/+16 | |
| | | ||||
* | | Return 404 Floof embed on invalid status code | 2021-03-03 | -4/+12 | |
| | | ||||
* | | Removed HTTPStatus Dependency, enable broader Status Code Support | 2021-03-03 | -52/+28 | |
|/ | ||||
* | Make use of constants in the url | 2021-02-04 | -12/+11 | |
| | ||||
* | Add not Implemented error handler for .status cat command | 2021-02-02 | -0/+3 | |
| | ||||
* | Add similar repsonse.status check to too, and instead of ValueError raise ↵ | 2021-02-01 | -4/+12 | |
| | | | | NotImplemented error if the status is not implemented yet but is a valid status code | |||
* | rename the cog to HTTPStatusCodes | 2021-02-01 | -3/+3 | |
| | ||||
* | Remove unused imports | 2021-01-31 | -2/+0 | |
| | ||||
* | Add http status dog and add http_cat to group http_status | 2021-01-28 | -0/+63 | |