This commit is contained in:
Daniel Odendahl Jr
2017-09-26 14:09:05 +00:00
parent 55e615b5b4
commit da63a908e7
14 changed files with 228 additions and 103 deletions
+102
View File
@@ -0,0 +1,102 @@
[
"Unlike dogs, cats do not have a sweet tooth. Scientists believe this is due to a mutation in a key taste receptor.",
"When a cat chases its prey, it keeps its head level. Dogs and humans bob their heads up and down.",
"The technical term for a cats hairball is a \"bezoar.\"",
"A group of cats is called a \"clowder.\"",
"A cat cant climb head first down a tree because every claw on a cats paw points the same way. To get down from a tree, a cat must back down.",
"Cats make about 100 different sounds. Dogs make only about 10.",
"There are more than 500 million domestic cats in the world, with approximately 40 recognized breeds.",
"Approximately 24 cat skins can make a coat.",
"While it is commonly thought that the ancient Egyptians were the first to domesticate cats, the oldest known pet cat was recently found in a 9,500-year-old grave on the Mediterranean island of Cyprus. This grave predates early Egyptian art depicting cats by 4,000 years or more.",
"Cats are the most popular pet in the United States: There are 88 million pet cats and 74 million dogs.",
"There are cats who have survived falls from over 32 stories (320 meters) onto concrete.",
"Cats have over 20 muscles that control their ears.",
"Cats sleep 70% of their lives.",
"A cat has been mayor of Talkeetna, Alaska, for 15 years. His name is Stubbs.",
"A cat ran for mayor of Mexico City in 2013.",
"In tigers and tabbies, the middle of the tongue is covered in backward-pointing spines, used for breaking off and gripping meat.",
"When cats grimace, they are usually \"taste-scenting.\" They have an extra organ that, with some breathing control, allows the cats to taste-sense the air.",
"Cats can't taste sweetness.",
"Owning a cat can reduce the risk of stroke and heart attack by a third.",
"Wikipedia has a recording of a cat meowing because why not?",
"The world's largest cat measured 48.5 inches long.",
"Evidence suggests domesticated cats have been around since 3600 B.C., 2,000 years before Egypt's pharaohs.",
"A cat's purr may be a form of self-healing, as it can be a sign of nervousness as well as contentment.",
"The frequency of a domestic cat's purr is the same at which muscles and bones repair themselves.",
"Adult cats only meow to communicate with humans.",
"The world's richest cat is worth $13 million after his human passed away and left her fortune to him.",
"Your cat recognizes your voice but just acts too cool to care (probably because they are).",
"Cats are often lactose intolerant, so stop givin' them milk!",
"Basically all cartoon cats lied to us: Raw fish is off the table for cats.",
"The oldest cat video on YouTube dates back to 1894 (when it was made, not when it was uploaded, duh).",
"In the 1960s, the CIA tried to turn a cat into a bonafide spy by implanting a microphone into her ear and a radio transmitter at the base of her skull. She somehow survived the surgery but got hit by a taxi on her first mission.",
"Female cats are typically right-pawed while male cats are typically left-pawed.",
"A cat's brain is 90% similar to a human's — more similar than to a dog's.",
"Cats and humans have nearly identical sections of the brain that control emotion.",
"A cat's cerebral cortex (the part of the brain in charge of cognitive information processing) has 300 million neurons, compared with a dog's 160 million.",
"Cats have a longer-term memory than dogs, especially when they learn by actually doing rather than simply seeing.",
"Cats have a lower social IQ than dogs but can solve more difficult cognitive problems when they feel like it.",
"Cats have 1,000 times more data storage than an iPad.",
"It was illegal to slay cats in ancient Egypt, in large part because they provided the great service of controlling the rat population.",
"In the 15th century, Pope Innocent VIII began ordering the killing of cats, pronouncing them demonic.",
"A cat has five toes on his front paws, and four on the back, unless he's a polydactyl.",
"Polydactyl cats are also referred to as \"Hemingway cats\" because the author was so fond of them.",
"There are 45 Hemingway cats living at the author's former home in Key West, Fla.",
"Original kitty litter was made out of sand but it was replaced by more absorbent clay in 1948.",
"Abraham Lincoln kept four cats in the White House.",
"When asked if her husband had any hobbies, Mary Todd Lincoln is said to have replied \"cats.\"",
"Isaac Newton is credited with inventing the cat door.",
"One legend claims that cats were created when a lion on Noah's Ark sneezed and two kittens came out.",
"A cat can jump up to six times its length.",
"A house cat is faster than Usain Bolt.",
"When cats leave their poop uncovered, it is a sign of aggression to let you know they don't fear you.",
"Cats can change their meow to manipulate a human. They often imitate a human baby when they need food, for example.",
"Cats use their whiskers to detect if they can fit through a space.",
"Cats only sweat through their foot pads.",
"The first cat in space was French. She was named Felicette, or \"Astrocat.\" She survived the trip.",
"Cats have free-floating clavicle bones that attach their shoulders to their forelimbs, which allows them to squeeze through very small spaces.",
"Hearing is the strongest of cat's senses: They can hear sounds as high as 64 kHz — compared with humans, who can hear only as high as 20 kHz.",
"Cats can move their ears 180 degrees.",
"Cats can move their ears separately.",
"A cat has detected his human's breast cancer.",
"A cat's nose is ridged with a unique pattern, just like a human fingerprint.",
"Cats have scent glands along their tail, their forehead, lips, chin, and the underside of their front paws.",
"A cat rubs against people to mark its territory.",
"Cats lick themselves to get your scent off.",
"When a family cat died in ancient Egypt, family members would shave off their eyebrows as they mourned.",
"Ancient Egyptians had elaborate memorials that included mummifying a dead cat and either burying it in a family tomb or pet cemetery.",
"Cats were mythic symbols of divinity in ancient Egypt.",
"Black cats are bad luck in the United States, but they are good luck in the United Kingdom and Australia.",
"Most cats don't like water because their coats do not insulate them well enough.",
"A cat called the Turkish Van does not have the fur insulation problem and LOVES water.",
"The Egyptian Mau is the oldest breed of cat.",
"This breed is also the fastest pedigreed cat.",
"The Egyptian word for cat is, in fact, \"mau.\"",
"Only 11.5% of people consider themselves \"cat people.\"",
"Cat people are 11% more likely to be introverted.",
"Cat people are more open to new experiences than typical \"dog people.\"",
"Cat owners who are male tend to be luckier in love, as they are perceived as more sensitive.",
"Cat owners are 17% more likely to have a graduate degree.",
"Cat people are 25% likely to pick George as their favorite Beatle.",
"A cat's carbon footprint is similar to that of a VW Bug, whereas a dog's is more like a Hummer.",
"When your cat brings home a dead mouse or bird, it may do so to show you that you suck at hunting.",
"Cats have inferior daytime sight, but during the night they need seven times less light than humans to see.",
"The largest litter of kittens produced 19 kittens.",
"Eighty-eight percent of cats in the U.S. are spayed or neutered.",
"Only 24% of cats who enter animal shelters are adopted.",
"Cats are really cool.",
"Cats are very soft.",
"Calico cats are almost always female.",
"Cats knead with their paws when they are happy.",
"A male cat is called a \"Tom\" and a female cat is called a \"Queen.\"",
"Cats' collarbones don't connect to their other bones, as these bones are buried in their shoulder muscles.",
"Cats have 230 bones, while humans only have 206.",
"Cats have an extra organ that allows them to taste scents on the air, which is why your cat stares at you with her mouth open from time to time.",
"Cats have whiskers on the backs of their front legs, as well.",
"Cats have the largest eyes relative to their head size of any mammal.",
"Cats make very little noise when they walk around. The thick, soft pads on their paws allow them to sneak up on their prey -- or you!",
"Cats' rough tongues can lick a bone clean of any shred of meat.",
"Cats use their long tails to balance themselves when they're jumping or walking along narrow ledges.",
"Cats walk like camels and giraffes: They move both of their right feet first, then move both of their left feet. No other animals walk this way.",
"Though cats can notice the fast movements of their prey, it often seems to them that slow-moving objects are actually stagnant."
]
+102
View File
@@ -0,0 +1,102 @@
[
"Puppies love games such as hide and seek! Hide, then call your pup's name so she can try to find you.",
"Dogs can learn more than 1000 words.",
"Big happy \"helicopter\" tail wagging is one sign of a really nice dog",
"Upright, stiff, rapid tail movement is not wagging or \"friendly\" but indicates a dog who's rather excited and focused.",
"Puppies grow to half their body weight in the first four to five months.",
"Puppies then take a year or more to gain the other half of their body weight.",
"Puppies can sleep 18 to 20 hours a day during their rapid body growth phase.",
"Dogs sometimes appear to smile -- much like humans -- with open mouth grinning. This may indicate a relaxed, submissive state.",
"Tired puppies get cranky just like little kids. If you have a fussy puppy, try nap time.",
"The fastest breed, the Greyhound, can run up to 44 miles per hour.",
"The Labrador Retriever has been on the AKCs top 10 most popular breeds list for 25 consecutive years—longer than any other breed.",
"A dogs nose print is unique, much like a persons fingerprint.",
"Forty-five percent of U.S. dogs sleep in their owners bed.",
"All dogs dream, but puppies and senior dogs dream more frequently than adult dogs.",
"Seventy percent of people sign their dogs name on their holiday cards.",
"A dogs sense of smell is legendary, but did you know that his nose has as many as 300 million receptors? In comparison, a human nose has about 5 million.",
"Rin Tin Tin, the famous German Shepherd, was nominated for an Academy Award.",
"The shape of a dogs face suggests its longevity: A long face means a longer life.",
"Dog eyes have a part called the tapetum lucidum, allowing night vision.",
"The name Collie means \"black.\" (Collies once tended black-faced sheep.)",
"Yawning is contagious—even for dogs. Research shows that the sound of a human yawn can trigger one from your dog. And its four times as likely to happen when its the yawn of a person he knows.",
"The Dandie Dinmont Terrier is the only breed named for a fictional person—a character in the novel Guy Mannering, by Sir Walter Scott.",
"Dogs curl up in a ball when sleeping to protect their organs—a hold over from their days in the wild, when they were vulnerable to predator attacks.",
"The Basenji is not technically “barkless,” as many people think. They can yodel.",
"The Australian Shepherd is not actually from Australia—they are an American breed.",
"The Labrador Retriever is originally from Newfoundland.",
"Human blood pressure goes down when petting a dog. And so does the dogs.",
"There are over 75 million pet dogs in the U.S.—more than in any other country.",
"A person who hunts with a Beagle is known as a \"Beagler.\"",
"Dogs are not colorblind. They also see blue and yellow.",
"All puppies are born deaf.",
"Dalmatians are born completely white, and develop their spots as they get older.",
"Dogs have about 1,700 taste buds. (We humans have between 2,00010,000.)",
"When dogs kick backward after they go to the bathroom its not to cover it up, but to mark their territory, using the scent glands in their feet.",
"A recent study shows that dogs are among a small group of animals who show voluntary unselfish kindness towards others without any reward. This is one fact dog lovers have known all along.",
"Theres a reason your tot and your pup get along so well: they speak the same language. Or at least, they likely understand roughly the same number of words and gestures — 250!",
"This may be hard to believe since dogs are such messy drinkers, but just like cats, our canine friends bend the tip of their tongue and raise liquid in a column up to their mouths.",
"Your dog does have a sense of time — and misses you when youre gone.",
"Your dogs whiskers help him \"see\" in the dark.",
"Dogs only have sweat glands in their paws.",
"On average, a dogs mouth exerts 320 pounds of pressure.",
"Your one year-old pup is as physically mature as a 15-year-old human.",
"Your dogs sense of smell is 1,000 to 10 million times better than yours.",
"Dogs can hear 4 times as far as humans.",
"Your dog can smell your feelings.",
"Corgi is Welsh for \"dwarf dog.\"",
"The Newfoundland breed has a water resistant coat and webbed feet. This dog was originally bred to help haul nets for fishermen and rescuing people at risk of drowning.",
"Three dogs (from First Class cabins!) survived the sinking of the Titanic two Pomeranians and one Pekingese.",
"Its rumored that, at the end of the Beatles song, “A Day in the Life,” Paul McCartney recorded an ultrasonic whistle, audible only to dogs, just for his Shetland sheepdog.",
"Puppies have 28 teeth and normal adult dogs have 42.",
"Dogs chase their tails for a variety of reasons: curiosity, exercise, anxiety, predatory instinct or, they might have fleas!",
"Dogs and humans have the same type of slow wave sleep (SWS) and rapid eye movement (REM) and during this REM stage dogs can dream. The twitching and paw movements that occur during their sleep are signs that your pet is dreaming",
"Dogs eyes contain a special membrane, called the tapetum lucidum, which allows them to see in the dark.",
"A large breed dogs resting heart beats between 60 and 100 times per minute, and a small dog breeds heart beats between 100-140. Comparatively, a resting human heart beats 60-100 times per minute.",
"72% of dog owners believe their dog can detect when stormy weather is on the way.",
"A dogs normal temperature is between 101 and 102.5 degrees Fahrenheit.",
"Dogs have three eyelids, an upper lid, a lower lid and the third lid, called a nictitating membrane or \"haw,\" which helps keep the eye moist and protected.",
"62% of U.S. households own a pet, which equates to 72.9 million homes.",
"Dogs noses secrete a thin layer of mucous that helps them absorb scent. They then lick their noses to sample the scent through their mouth.",
"Dogs have about 1,700 taste buds. Humans have approximately 9,000 and cats have around 473.",
"A Dogs sense of smell is 10,000 100,000 times more acute as that of humans.",
"Its a myth that dogs only see in black and white. In fact, its believed that dogs see primarily in blue, greenish-yellow, yellow and various shades of gray.",
"Dogs hear best at 8,000 Hz, while humans hear best at around 2,000 Hz.",
"Dogs ears are extremely expressive. Its no wonder! There are more than a dozen separate muscles that control a dogs ear movements.",
"While the Chow Chow dogs are well known for their distinctive blue-black tongues, theyre actually born with pink tongues. They turn blue-black at 8-10 weeks of age.",
"When dogs kick after going to the bathroom, they are using the scent glands on their paws to further mark their territory.",
"In addition to sweating through their paw pads, dogs pant to cool themselves off. A panting dog can take 300-400 breaths (compared to his regular 30-40) with very little effort.",
"More than 1 in 3 families in the United States owns a dog.",
"Spaying or neutering your dog can help prevent certain types of cancer.",
"If never spayed or neutered, a pair of dogs can produce 66,000 puppies in 6 years.",
"The average dog can run about 19 miles per hour at full speed.",
"Dogs are mentioned 14 times in the Bible.",
"Dogs dont feel guilt.",
"Dog urine can corrode metal.",
"Dogs can smell disease.",
"Service dogs pee and poop on command and know when theyre on or off duty.",
"Given their druthers, dogs will poop facing the North-South magnetic axis. Scientists have no theories yet as to why.",
"Two stray dogs in 1860s San Francisco were sanctioned to roam free by the local constabulary. Bummer and Lazarus were local icons, heralded in cartoons and newspaper articles for their daring adventures as rat-catchers and petty thieves.",
"Boy Scouts and Girl Scouts can earn badges for dog care and pet care.",
"Max, the worlds oldest dog, passed away at the ripe old age of 29 years and 282 days old in 2013. He was a beagle and terrier mix.",
"George Washington had a favorite fox hound named Sweetlips and a dalmatian coach dog named Madame Moose.",
"Dogs have 18 muscles controlling their ears, cats have 32, and humans have only 6.",
"Did you know tripping over your dog is the second most likely way to get injured around hounds? Bites are the most common.",
"Chihuahuas are born with an incomplete skull just like a human baby. The soft spot is known as a molera in dogs and fontanelle in humans.",
"Male dogs lift a leg to pee to make themselves appear larger to other dogs. ",
"Dogs and wolves split from a common ancestor around 34,000 years ago.",
"Wolves howl by themselves to get the attention of their pack, or the pack of wolves will howl to get the attention of another pack.",
"In order to socialize them early, it helps for Ambassador wolves to have puppy playmates.",
"When the WCC raises pups without their mothers, they sometimes enlist dogs be parental figures, to show the wolf pups how to properly interact with the hoomans.",
"Dogs are as smart as a two-year-old baby.",
"Dogs only mate twice a year.",
"Tail wagging has its own language.",
"Dogs have a \"sixth sense.\"",
"Your dog's feet might smell like corn.",
"\"Dog breath\" is actually unhealthy.",
"It's not abnormal for dogs to eat feces.",
"A dog's unique smell is secreted in its glands.",
"The idea that a dogs saliva has healing powers has been around at least since the ancient Greeks and Romans, whose physicians believed it to be an antidote for poisoning.",
"The phrase \"Beware of Dog\" is so old that its Latin equivalent — \"cave canem\" — has been found on signs in Roman ruins.",
"Putting collars on dogs is an ancient practice, but dog licenses are much more recent."
]
+2 -1
View File
@@ -41,11 +41,12 @@ module.exports = class TypingGameCommand extends Command {
**You have ${time / 1000} seconds to type this sentence.**
${sentence}
`);
const now = Date.now();
const msgs = await msg.channel.awaitMessages(res => res.author.id === msg.author.id, {
max: 1,
time
});
if (!msgs.size || msgs.first().content !== sentence) return msg.say('Sorry! You lose!');
return msg.say('Nice job! 10/10! You deserve some cake!');
return msg.say(`Nice job! 10/10! You deserve some cake! (Took ${(Date.now() - now) / 1000} seconds)`);
}
};
+3 -10
View File
@@ -1,5 +1,5 @@
const Command = require('../../structures/Command');
const snekfetch = require('snekfetch');
const facts = require('../../assets/json/cat-fact');
module.exports = class CatFactCommand extends Command {
constructor(client) {
@@ -12,14 +12,7 @@ module.exports = class CatFactCommand extends Command {
});
}
async run(msg) {
try {
const { body } = await snekfetch
.get('https://catfact.ninja/fact')
.query({ max_length: 2000 });
return msg.say(body.fact);
} catch (err) {
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}
run(msg) {
return msg.say(facts[Math.floor(Math.random() * facts.length)]);
}
};
+3 -9
View File
@@ -1,5 +1,5 @@
const Command = require('../../structures/Command');
const snekfetch = require('snekfetch');
const facts = require('../../assets/json/dog-fact');
module.exports = class DogFactCommand extends Command {
constructor(client) {
@@ -12,13 +12,7 @@ module.exports = class DogFactCommand extends Command {
});
}
async run(msg) {
try {
const { body } = await snekfetch
.get('https://dog-api.kinduff.com/api/facts');
return msg.say(body.facts[0]);
} catch (err) {
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}
run(msg) {
return msg.say(facts[Math.floor(Math.random() * facts.length)]);
}
};
+1
View File
@@ -7,6 +7,7 @@ module.exports = class NameCommand extends Command {
constructor(client) {
super(client, {
name: 'name',
aliases: ['random-person'],
group: 'random-res',
memberName: 'name',
description: 'Responds with a random name, with the gender of your choice.',
-68
View File
@@ -1,68 +0,0 @@
const Command = require('../../structures/Command');
const { MessageEmbed } = require('discord.js');
const snekfetch = require('snekfetch');
const { stripIndents } = require('common-tags');
const { list } = require('../../structures/Util');
const genders = ['male', 'female', 'both'];
module.exports = class RandomPersonCommand extends Command {
constructor(client) {
super(client, {
name: 'random-person',
group: 'random-res',
memberName: 'random-person',
description: 'Responds with a randomly generated person.',
clientPermissions: ['EMBED_LINKS'],
args: [
{
key: 'gender',
prompt: `What gender do you want to generate a name for? Either ${list(genders, 'or')}.`,
type: 'string',
default: 'both'
}
]
});
}
async run(msg, { gender }) {
try {
const { body } = await snekfetch
.get('https://randomuser.me/api/')
.query({
gender,
nat: 'us,gb,au',
noinfo: ''
});
const data = body.results[0];
const embed = new MessageEmbed()
.setColor(0x9797FF)
.setThumbnail(data.picture.large)
.addField(' First Name',
data.name.first.toUpperCase(), true)
.addField(' Last Name',
data.name.last.toUpperCase(), true)
.addField(' Title',
`${data.name.title.toUpperCase()}.`, true)
.addField(' Gender',
data.gender.toUpperCase(), true)
.addField(' Username',
data.login.username, true)
.addField(' Password',
data.login.password, true)
.addField(' Phone',
data.phone, true)
.addField(' Cell',
data.cell, true)
.addField(' Birthday',
new Date(data.dob).toDateString(), true)
.addField(' Address',
stripIndents`
${data.location.street.toUpperCase()}
${data.location.city.toUpperCase()}, ${data.location.state.toUpperCase()} ${data.location.postcode}
`);
return msg.embed(embed);
} catch (err) {
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}
}
};
@@ -1,11 +1,11 @@
const Command = require('../../structures/Command');
const snekfetch = require('snekfetch');
module.exports = class GenderCommand extends Command {
module.exports = class GenderGuessCommand extends Command {
constructor(client) {
super(client, {
name: 'gender',
aliases: ['gender-guess', 'guess-gender'],
name: 'gender-guess',
aliases: ['gender', 'guess-gender'],
group: 'random',
memberName: 'gender',
description: 'Determines the gender of name.',
+1 -1
View File
@@ -7,7 +7,7 @@ module.exports = class DefineCommand extends Command {
constructor(client) {
super(client, {
name: 'define',
aliases: ['dictionary', 'wordnik'],
aliases: ['dictionary', 'wordnik', 'define-wordnik'],
group: 'search',
memberName: 'define',
description: 'Defines a word.',
@@ -1,11 +1,11 @@
const Command = require('../../structures/Command');
const { stripIndents } = require('common-tags');
module.exports = class DiscrimCommand extends Command {
module.exports = class DiscriminatorCommand extends Command {
constructor(client) {
super(client, {
name: 'discrim',
aliases: ['discriminator', 'search-discrim', 'search-discriminator'],
name: 'discriminator',
aliases: ['discrim', 'search-discrim', 'search-discriminator'],
group: 'search',
memberName: 'discrim',
description: 'Searches for other users with a certain discriminator.',
@@ -2,11 +2,11 @@ const Command = require('../../structures/Command');
const { MessageEmbed } = require('discord.js');
const snekfetch = require('snekfetch');
module.exports = class JapaneseDictionaryCommand extends Command {
module.exports = class JapaneseDefineCommand extends Command {
constructor(client) {
super(client, {
name: 'japanese-dictionary',
aliases: ['japanese-define', 'define-japanese', 'define-jpn', 'jpn-define', 'jisho'],
name: 'japanese-define',
aliases: ['japanese-dictionary', 'define-japanese', 'define-jpn', 'jpn-define', 'jisho'],
group: 'search',
memberName: 'japanese-dictionary',
description: 'Defines a word, but with Japanese.',
+1 -1
View File
@@ -6,7 +6,7 @@ module.exports = class MapCommand extends Command {
constructor(client) {
super(client, {
name: 'map',
aliases: ['google-maps'],
aliases: ['google-maps', 'google-map'],
group: 'search',
memberName: 'map',
description: 'Responds with a map based upon your query.',
@@ -3,11 +3,11 @@ const { MessageEmbed } = require('discord.js');
const snekfetch = require('snekfetch');
const { shorten } = require('../../structures/Util');
module.exports = class GhibliCommand extends Command {
module.exports = class StudioGhibliCommand extends Command {
constructor(client) {
super(client, {
name: 'ghibli',
aliases: ['studio-ghibli', 'ghibli-film', 'studio-ghibli-film'],
name: 'studio-ghibli',
aliases: ['ghibli', 'ghibli-film', 'studio-ghibli-film'],
group: 'search',
memberName: 'ghibli',
description: 'Searches Studio Ghibli films for your query.',
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "42.12.3",
"version": "42.12.4",
"description": "Your personal server companion.",
"main": "Shard.js",
"scripts": {