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

Added facts for the dumbo octopus. #320

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 @@ -71,6 +71,7 @@ You can see the bot in action at https://www.reddit.com/user/AnimalFactsBot/comm
* Dodo
* Dolphin
* Dugong
* Dumbo Octopus
* Eagle
* Earthworm
* Echidna
Expand Down
17 changes: 17 additions & 0 deletions animalfacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ def check_comment_for_animal(comment, reddit):
botengine('dodo', '\sdodos?\s', reddit, DODO_FACTS, comment)
# botengine('dragon', '\sdragons?\s', reddit, DRAGON_FACTS, comment) Disabled because this was only a temp feature during Game of Thrones season. Dragons aren't real.
botengine('dugong', '\sdugongs?\s', reddit, DUGONG_FACTS, comment)
botengine('dumbo octopus' '\sdumbo octopus?\s', reddit, DUMBOOCTOPUS_FACTS, comment)
botengine('eagle', '\seagles?\s', reddit, EAGLE_FACTS, comment)
botengine('earthworm', '\searthworms?\s', reddit, EARTHWORM_FACTS, comment)
botengine('echidna', '\sechidnas?\s', reddit, ECHIDNA_FACTS, comment)
Expand Down Expand Up @@ -1056,6 +1057,21 @@ def animalfactsbot(reddit):
'Dugongs can stay underwater for 6 minutes before surfacing.',
)

DUMBOOCTOPUS_FACTS = (
'Dumbo octopus is a type of octopus named after the Walt Disney famous character Dumbo the elephant because of the ear-like fins.',
'The dumbo octopus is rarely seen because they are living on the bottom of the sea on a depth ranging from 1 300 to 23 000 feet.',
'The arms are equipped with small harpoon-like barbs that are designed to hold the prey.',
'The dumbo octopus can swim by flapping the fins, by contracting and expanding its arms or by propelling the water from the funnel.',
'Dumbo octopus eat different type of crustaceans, bivalve, worms on the sea bottom and copepods (that are part of the zoo-plankton) when they swim near the surface of the water',
'Dumbo octopus swallows the prey whole.',
'One arm of males has a large segment that is used to deliver packages of sperm into a female dumbo body.',
'Average lifespan of dumbo octopus is between 3 and 5 years.',
'Newly born dumbo octopi are large in size, well developed and able to survive on their own.',
'Dumbo octopus does not have mating season.',
'The color of the body can be red, green or orange.',
'Males and females can be distinguished by the length of the suckers.'
)

EAGLE_FACTS = (
'Eagles build their nests on high cliffs or in tall trees.',
'There are over 60 different species of eagle.',
Expand Down Expand Up @@ -3044,6 +3060,7 @@ def animalfactsbot(reddit):
DODO_FACTS,
DOLPHIN_FACTS,
DUGONG_FACTS,
DUMBOOCTOPUS_FACTS,
EAGLE_FACTS,
EARTHWORM_FACTS,
ECHIDNA_FACTS,
Expand Down