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 fossa facts #386

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 @@ -97,6 +97,7 @@ You can see the bot in action at https://www.reddit.com/user/AnimalFactsBot/comm
* Ferret
* Fire salamander
* Flamingo
* Fossa
* Fox
* Frog
* Gazelle
Expand Down
18 changes: 18 additions & 0 deletions animalfacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ def check_comment_for_animal(comment, reddit):
botengine('fire salamander', '\sfire salamanders?\s', reddit, FIRESALAMANDER_FACTS, comment)
botengine('flamingo', '\sflamingos?\s', reddit, FLAMINGO_FACTS, comment)
# botengine('fly', '\sfl(y|ies)?\s', reddit, FLY_FACTS, comment)
botengine('fossa', '\sfossas?\s', reddit, FOSSA_FACTS, comment)
botengine('fox', '\sfox(es)?\s', reddit, FOX_FACTS, comment)
botengine('frog', '\sfrogs?\s', reddit, FROG_FACTS, comment)
botengine('gazelle', '\sgazelles?\s', reddit, GAZELLE_FACTS, comment)
Expand Down Expand Up @@ -1425,6 +1426,22 @@ def animalfactsbot(reddit):
'Flies do not have jaws or teeth, they must drink their food',
)

FOSSA_FACTS = (
'The fossa (Cryptoprocta ferox) is the largest carnivorous mammal on the island of Madagascar',
'The fossa can reach nearly six feet in length, with half of that due to its long tail.',
'The fossa\'s genus name, Cryptoprocta, is inspired by how its anus is concealed by an anal pouch. It comes from the Greek for hidden (crypto) and anus (procta). The fossa\'s species name, ferox, refers to its exaggerated reputation for ferocity.',
'Fossas are the top predator in Madagascar.',
'Fossas hunt during both day and night, and can take prey from both the ground and in trees.',
'With the exception of mothers with young and brief pairings during the breeding season, fossas are solitary animals.',
'Fossas patrol and defend territories as large as four square kilometers.',
'Fossas communicate largely through scent glands.',
'Fossas mainly vocalize during the breeding season. Females mew to attract males, and males sigh when they have found a receptive female and yowl when competing for her affections.',
'The female fossa undergoes a strange developmental stage during adolescence known as transient masculinization, unique to fossas.',
'Unlike mongooses, and more like felines, the fossa has retractable claws and fearsome catlike teeth.',
'The fossas coat is reddish brown and its muzzle resembles that of a dog.',
'Fossas are threatened due to habitat loss. Less than ten percent of Madagascar’s original, intact forest cover, the fossa’s only home, remains today.',
)

FOX_FACTS = (
'A group of foxes is called a "skulk" or "leash".',
'Grey foxes can retract their claws like cats do.',
Expand Down Expand Up @@ -3470,6 +3487,7 @@ def animalfactsbot(reddit):
FIRESALAMANDER_FACTS,
FLAMINGO_FACTS,
FLY_FACTS,
FOSSA_FACTS,
FOX_FACTS,
FROG_FACTS,
GAZELLE_FACTS,
Expand Down