Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Aye-aye animal facts #306

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ You can see the bot in action at https://www.reddit.com/user/AnimalFactsBot/comm
* Antelope
* Armadillo
* Atlantic puffin
* Aye-Aye
* Badger
* Bear
* Beaver
Expand Down
10 changes: 10 additions & 0 deletions animalfacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ def check_comment_for_animal(comment, reddit):
botengine('antelope', '\santelopes?\s', reddit, ANTELOPE_FACTS, comment)
botengine('armadillo', '\sarmadillos?\s', reddit, ARMADILLO_FACTS, comment)
botengine('atlantic puffin', '\spuffins?\s', reddit, ATLANTIC_PUFFIN_FACTS, comment)
botengine('aye-aye', '\saye-aye?\s', reddit, AYE_AYE_FACTS, comment)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused: is the name Aye-Aye or Aye Aye? This has issue #168 implications...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is Aye-Aye...

botengine('honeybadger', '\shoney badgers?\s', reddit, HONEYBADGER_FACTS, comment) # Needs to be here out of order so that it gets picked up before regular badger
botengine('badger', '\sbadgers?\s', reddit, BADGER_FACTS, comment)
botengine('bear', '\sbears?\s', reddit, BEAR_FACTS, comment)
Expand Down Expand Up @@ -608,6 +609,15 @@ def animalfactsbot(reddit):
'Puffins are one of the few birds that have the ability to hold several small fish in their bills at a time. Their raspy tongues and spiny palates allow them to firmly grasp 10 to 12 fish during one foraging trip. They thus can bring more food back to their young compared with other seabirds that tend to swallow and regurgitate meals for their chicks.',
)

AYE_AYE_FACTS = (
'The Aye Aye is a species of Lemur that is found inhabiting the rainforests of Madagascar.',
'The Aye Aye is not only the largest nocturnal primate in the world but is also one of the most unique and is in fact so strange in appearance, that it was thought to be a large species of Squirrel when it was first discovered.',
'The Aye Aye is a primate that is most closely related to Lemurs but is one of the most unique animals on the planet due the fact that it possesses a number of very distinct adaptations.',
'Their body and long tail are covered in coarse, shaggy black or dark brown fur with a layer of white guard hairs that helps them to blend into the surrounding forest in the dark.',
'The Aye Aye has very large eyes on its pointed face, a pink nose and rodent-like teeth with incisors that grow continuously to ensure that they never become blunt.',
'Their large rounded ears are incredibly sensitive giving the Aye Aye excellent hearing when listening for grubs beneath the tree bark and are able to be rotated independently.',
)

AXOLOTL_FACTS = (
'Wild Axolotls are normally brown or black, not white.',
'In the wild, Axolotls can only be found in the lakes and canals of Xochimilco, Mexico.',
Expand Down