aboutsummaryrefslogtreecommitdiffstats
path: root/bot/command.py (unfollow)
Commit message (Collapse)AuthorLines
2021-09-02More explicit importing for `Bot`Gravatar Xithrius-9/+9
2021-09-02A list of emojisGravatar Xithrius-1/+1
2021-09-02Removed more not-needed `None` returnsGravatar Xithrius-3/+3
2021-09-02Removed unecessary `None` annotationGravatar Xithrius-2/+1
2021-09-02Added documentation for tupleGravatar Xithrius-1/+1
2021-09-02Removed depricated `typing.Match`Gravatar Xithrius-2/+2
2021-09-01Removed unecessary annotations.Gravatar Xithrius-4/+3
2021-09-01Removed None return annotation for any __init__Gravatar Xithrius-19/+19
2021-09-01Union item with None to Optional with item.Gravatar Xithrius-10/+10
2021-09-01Improved consistency for codeblocks to end with a newlineGravatar wookie184-30/+34
2021-09-01Start and end codeblocks with newlines to avoid android rendering them inlineGravatar wookie184-13/+13
2021-09-01Handle status not found with 404 pictureGravatar bradtimmis-1/+8
Hard-coded in the appropriate 404 jpgs for wehn a status code does not exist from the dog or cat urls.
2021-09-01Remove unnecessary Embed from set_footerGravatar bradtimmis-1/+1
2021-09-01Use permissions_for over permissions_inGravatar Chris Lovering-6/+8
`discord.Member.permissions_in()` was removed in d.py 2.0 in favour of using `discord.Channel.permissions_for()` everywhere.
2021-08-31Fix type annotationsGravatar decorator-factory-228/+227
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-31Snakes: make use of PLAYER_ICON_IMAGE_SIZE againGravatar Matteo Bertucci-1/+1
2021-08-31Make the bot automatically join threadsGravatar Matteo Bertucci-2/+18
This is just a QoL of life thing, avoiding having us to check if the bot is here or not before issuing a command Co-authored-by: ChrisJL <[email protected]>
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-31Trigger the bot on mentionsGravatar Matteo Bertucci-1/+2
Since it is the only way to add bots to threads, it would make sense to be able to execute that command.
2021-08-31Migrate to Discord.py 2.0a0Gravatar Matteo Bertucci-185/+194
Since the Discord.py repository has been archived, we can switch to the latest commit of 2.0a0, knowing no breaking change will occur (still pinned to the commit just in case). This commit also solves two small problems due to that fix, the avatar interface changing and Embed.name disappearing. Quite a painless migration.
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