This repository was archived by the owner on Mar 14, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 16
Team 13 #10
Open
schwartzadev
wants to merge
54
commits into
python-discord:master
Choose a base branch
from
schwartzadev:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Team 13 #10
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
0aa95cb
Merge pull request #1 from discord-python/master
schwartzadev c2505ce
add preliminary snake 'get' command
schwartzadev 8c25449
allow user input for snake names
schwartzadev e3f0c70
change imports order, index format string
schwartzadev 611501f
add interim fancy message formatting, handle special python case
schwartzadev 85bb282
add snake to query string for images
schwartzadev 243b51f
add list of snake facts, sources files
schwartzadev b4e6468
update sources
schwartzadev cea4cf3
add snake fact command
schwartzadev 3a37252
clean up code - type hinting, spelling, URL formatting, etc. (thanks …
schwartzadev 6602d02
fix broken URL
schwartzadev 62401e5
resolve PEP E226
schwartzadev 7f63f4f
implement more of @1mn's suggestions
schwartzadev 0137051
use the snake emoji
schwartzadev 1e710db
integrate with the API - thanks @prithajnath - remove message from re…
schwartzadev 5844b02
Merge pull request #2 from discord-python/master
schwartzadev 3656c01
Add search endpoint and auth headers
prithajnath 48f8de4
Merge pull request #3 from discord-python/master
schwartzadev bf2f9ea
remove repetitive embed code, fix linting errors (hopefully!)
schwartzadev d8a26ba
resolve flake8 - P103
schwartzadev 9c8a9f4
resolve linting issues
schwartzadev 697f557
implement random api endpoint
schwartzadev 0951f92
implement titlecase for common and scientific names, remove unused al…
schwartzadev 544bed5
return number of matches in searches, add handling of searches with 0…
schwartzadev a2255e7
add qwant api in favor of unsplash, including handling for small numb…
schwartzadev 9b2f8d0
rm prints
schwartzadev f30abab
Merge pull request #4 from schwartzadev/qwant-images
schwartzadev 48f2584
add newline between imports (I201) for linting
schwartzadev e5901b6
Add APIs used
prithajnath 5770c79
Add some GIFs for facts
prithajnath 259c5a6
linting updates
schwartzadev 2d45b2f
add list of zen python sayings
schwartzadev 6776264
use response.json() for qwant access
schwartzadev 03f9b61
handle snakes without a location, reduce variance in photos to three …
schwartzadev a27582a
Add cat input for GIF
prithajnath e2d556b
start video command - needs formatting work for embed
schwartzadev 003ace9
remove embed (Discord is finnicky), fix command format
schwartzadev 2366c43
update docstring for get
schwartzadev ea31798
update video docstring
schwartzadev a9f8863
fix get_video_json docstring
schwartzadev 01c701b
Add Zen of Python
prithajnath 9d28fa3
Merge pull request #6 from schwartzadev/video-command
prithajnath c98bc6e
Merge branch 'master' into prithaj_gif_categories
schwartzadev d2482b2
Merge pull request #5 from schwartzadev/prithaj_gif_categories
schwartzadev f1b7a2c
Add alias for this
prithajnath ff361b8
Add descp for zen
prithajnath 13937c1
Merge branch 'prithaj_zen_of_python' of https://github.com/schwartzad…
schwartzadev 3279319
lint, fix spelling
schwartzadev e0d2bf2
lint, fix spelling
schwartzadev 361cc45
Merge pull request #7 from schwartzadev/prithaj_zen_of_python
schwartzadev ac33379
Merge branch 'master' of https://github.com/schwartzadev/code-jam-1
schwartzadev 375f4bc
fix arguments, lint, and format for get_snek_fact
schwartzadev 71a0f44
linting
schwartzadev 99f00f2
add information about credentials
schwartzadev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"facts": { | ||
"Snakes are carnivores (meat eaters).":"dangerous", | ||
"Snakes don’t have eyelids.":"interesting", | ||
"Snakes can’t bite food so have to swallow it whole.":"dangerous", | ||
"Snakes have flexible jaws which allow them to eat prey bigger than their head!":"dangerous", | ||
"Snakes are found on every continent of the world except Antarctica.":"interesting", | ||
"Snakes have internal ears but not external ones.":"interesting", | ||
"Snakes used in snake charming performances respond to movement, not sound.":"interesting", | ||
"There are around 3000 different species of snake.":"interesting", | ||
"Snakes have a unique anatomy which allows them to swallow and digest large prey.":"dangerous", | ||
"Snakes are covered in scales.":"interesting", | ||
"Snakeskin is smooth and dry.":"interesting", | ||
"Snakes shed their skin a number of times a year in a process that usually lasts a few days.":"interesting", | ||
"Snakes smell with their tongue.":"interesting", | ||
"Pythons kill their prey by tightly wrapping around it and suffocating it in a process called constriction.":"dangerous", | ||
"Some sea snakes can breathe partially through their skin, allowing for longer dives underwater.":"interesting", | ||
"Some animals, such as the Mongoose, are immune to snake venom.":"interesting", | ||
"While snakes do not have external ears or eardrums, their skin, muscles, and bones carry sound vibrations to their inner ears.":"interesting", | ||
"Rattlesnake rattles are made of rings of keratin, which is the same material as human hair and fingernails. A rattler will add a new ring each time it sheds its skin.":"interesting", | ||
"Some snakes have over 200 teeth. The teeth aren’t used for chewing but they point backward to prevent prey from escaping the snake’s throat.":"interesting", | ||
"There are five recognized species of flying snakes. Growing up to 4 feet, some types can glide up to 330 feet through the air.":"interesting", | ||
"Snakes do not lap up water like mammals do. Instead, they dunk their snouts underwater and use their throats to pump water into their stomachs.":"interesting", | ||
"A snake’s fangs usually last about 6–10 weeks. When a fang wears out, a new one grows in its place.":"interesting", | ||
"Snakes typically need to eat only 6–30 meals each year to be healthy.":"interesting", | ||
"If the temperature reaches below 50° Fahrenheit, a snake’s body does not work properly.":"interesting", | ||
"The Gaboon viper has the longest fangs of any snake, reaching about 2 inches (5 cm) long.":"dangerous", | ||
"The longest snake ever recorded is the reticulated python. It can reach over 33 feet long, which is big enough to swallow a pig, a deer, or even a person.":"dangerous", | ||
"Some venomous snakes have died after biting and poisoning themselves by mistake.":"self-harm", | ||
"While a snake cannot hear the music of a snake charmer, the snake responds to the vibrations of the charmer’s tapping foot or to the movement of the flute.":"interesting", | ||
"Most snakes are not harmful to humans and they help balance the ecosystem by keeping the population of rats, mice, and birds under control.":"interesting", | ||
"Most snakes have an elongated right lung, many have a smaller left lung, and a few even have a third lung. They do not have a sense of taste, and most of their organs are organized linearly.":"interesting", | ||
"Snakes kill over 40,000 people a year—though, with unreported incidents, the total may be over 100,000. About half of these deaths are in India.":"dangerous", | ||
"Some members of the U.S. Army Special Forces are taught to kill and eat snakes during their survival training, which has earned them the nickname “Snake Eaters.”":"dangerous" | ||
}, | ||
"gifs":{ | ||
"dangerous":[ | ||
"https://media.giphy.com/media/2yP1jNgjNAkvu/giphy.gif", | ||
"https://media.giphy.com/media/OGufyodtN4NUs/giphy.gif", | ||
"https://media.giphy.com/media/tP2fZCu4K9Yac/giphy.gif", | ||
"https://media.giphy.com/media/ldC6st7Bz3lZK/giphy.gif" | ||
], | ||
"self-harm":[ | ||
"https://media.giphy.com/media/A6r0BbR2ob1GE/giphy.gif", | ||
"https://media.giphy.com/media/dFEd78w0sJNwA/giphy.gif" | ||
], | ||
"interesting":[ | ||
"https://media.giphy.com/media/10lKFp5Y03YITK/giphy.gif", | ||
"https://media.giphy.com/media/ZPtGZIbpA1Z0Q/giphy.gif", | ||
"https://media.giphy.com/media/hfV9dWY07x960/giphy.gif" | ||
] | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"zen" : [ | ||
"Beautiful is better than ugly.", | ||
"Explicit is better than implicit.", | ||
"Simple is better than complex.", | ||
"Complex is better than complicated.", | ||
"Flat is better than nested.", | ||
"Sparse is better than dense.", | ||
"Readability counts.", | ||
"Special cases aren't special enough to break the rules. Although practicality beats purity.", | ||
"Errors should never pass silently. Unless explicitly silenced.", | ||
"In the face of ambiguity, refuse the temptation to guess.", | ||
"There should be one-- and preferably only one --obvious way to do it.", | ||
"Although that way may not be obvious at first unless you're Dutch.", | ||
"Now is better than never.", | ||
"Although never is often better than *right* now.", | ||
"If the implementation is hard to explain, it's a bad idea.", | ||
"If the implementation is easy to explain, it may be a good idea.", | ||
"Namespaces are one honking great idea -- let's do more of those!" | ||
], | ||
|
||
"gif":[ | ||
"https://media.giphy.com/media/jCodV34MoczjW/giphy.gif", | ||
"https://media.giphy.com/media/ZLF9Loju0q3MA/giphy.gif", | ||
"https://media.giphy.com/media/v4NCChJtoH076/giphy.gif", | ||
"https://media.giphy.com/media/3o6Ztfi66HECEU0Z4k/giphy.gif", | ||
"https://media.giphy.com/media/HNSv7wrNUK5Ko/giphy.gif", | ||
"https://media.giphy.com/media/3oFzmdjqH15YebLQ52/giphy.gif", | ||
"https://media.giphy.com/media/2PIjvGv9DKtJ6/giphy.gif", | ||
"https://media.giphy.com/media/26DN0U3SqKDG2fTFe/giphy.gif", | ||
"https://media.giphy.com/media/3o6EhXODzc79cnZfRC/giphy.gif" | ||
] | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's loads of extra spaces in this file now. Did you edit it by hand?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope - this happened automatically when I installed the
titlecase
package