forked from Supositware/Haha-Yes
Bunch of new word!
This commit is contained in:
parent
63fa6991c0
commit
cc12b49934
18 changed files with 46 additions and 6 deletions
|
@ -27,9 +27,24 @@ module.exports = class sayCommand extends Command {
|
||||||
|
|
||||||
// Load all the different files
|
// Load all the different files
|
||||||
const verb = require('../../dictionary/verbs.json')
|
const verb = require('../../dictionary/verbs.json')
|
||||||
const noun = require('../../dictionary/nouns.json')
|
const noun = require('../../dictionary/noun.json')
|
||||||
const adverb = require('../../dictionary/adjectives.json')
|
const adverb = require('../../dictionary/adjectives.json')
|
||||||
const adjective = require('../../dictionary/adverbs.json')
|
const adjective = require('../../dictionary/adverbs.json')
|
||||||
|
const activities = require('../../dictionary/activities.json')
|
||||||
|
const celebreties = require('../../dictionary/celebreties.json')
|
||||||
|
const countries = require('../../dictionary/countries.json')
|
||||||
|
const diseases = require('../../dictionary/diseases.json')
|
||||||
|
const elements = require('../../dictionary/elements.json')
|
||||||
|
const hobbies = require('../../dictionary/hobbies.json')
|
||||||
|
const music = require('../../dictionary/music.json')
|
||||||
|
const prefixes = require('../../dictionary/prefixes.json')
|
||||||
|
const pronouns = require('../../dictionary/pronouns.json')
|
||||||
|
const states = require('../../dictionary/states.json')
|
||||||
|
const titles = require('../../dictionary/titles.json')
|
||||||
|
const units = require('../../dictionary/units.json')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Generate a random number
|
// Generate a random number
|
||||||
function randNumber(file) {
|
function randNumber(file) {
|
||||||
let Rand = Math.floor((Math.random() * file.length) + 1);
|
let Rand = Math.floor((Math.random() * file.length) + 1);
|
||||||
|
@ -41,9 +56,22 @@ module.exports = class sayCommand extends Command {
|
||||||
text = text.replace(/\[adverb\]/, adverb[randNumber(adverb)])
|
text = text.replace(/\[adverb\]/, adverb[randNumber(adverb)])
|
||||||
text = text.replace(/\[noun\]/, noun[randNumber(noun)])
|
text = text.replace(/\[noun\]/, noun[randNumber(noun)])
|
||||||
text = text.replace(/\[adjective\]/, adjective[randNumber(adjective)])
|
text = text.replace(/\[adjective\]/, adjective[randNumber(adjective)])
|
||||||
|
text = text.replace(/\[activitie\]/, activities[randNumber(activities)])
|
||||||
|
text = text.replace(/\[celebreties\]/, celebreties[randNumber(celebreties)])
|
||||||
|
text = text.replace(/\[countrie\]/, countries[randNumber(countries)])
|
||||||
|
text = text.replace(/\[diseases\]/, diseases[randNumber(diseases)])
|
||||||
|
text = text.replace(/\[elements\]/, elements[randNumber(elements)])
|
||||||
|
text = text.replace(/\[hobbie\]/, hobbies[randNumber(hobbies)])
|
||||||
|
text = text.replace(/\[music\]/, music[randNumber(music)])
|
||||||
|
text = text.replace(/\[prefixe\]/, prefixes[randNumber(prefixes)])
|
||||||
|
text = text.replace(/\[pronoun\]/, pronouns[randNumber(pronouns)])
|
||||||
|
text = text.replace(/\[state\]/, states[randNumber(states)])
|
||||||
|
text = text.replace(/\[title\]/, titles[randNumber(titles)])
|
||||||
|
text = text.replace(/\[unit\]/, units[randNumber(units)])
|
||||||
text = text.replace(/\[member\]/, message.guild.members.random().user.username)
|
text = text.replace(/\[member\]/, message.guild.members.random().user.username)
|
||||||
text = text.replace(/\[number\]/, Math.floor((Math.random() * 9) + 1))
|
text = text.replace(/\[number\]/, Math.floor((Math.random() * 9) + 1))
|
||||||
} while( text.includes('[verb]') || text.includes('[adverb]') || text.includes('[noun]') || text.includes('[adjective]') || text.includes('[member]') || text.includes('[number]') )
|
// Verify if it replaced everything
|
||||||
|
} while( text.includes('[verb]') || text.includes('[adverb]') || text.includes('[noun]') || text.includes('[adjective]') || text.includes('[member]') || text.includes('[number]') || text.includes('[activitie]') || text.includes('[celebreties]') || text.includes('[countrie]') || text.includes('[diseases]') || text.includes('[elements]') || text.includes('[hobbie]') || text.includes('[music]') || text.includes('[prefixe]') || text.includes('[pronoun]') || text.includes('[state]') || text.includes('[title]') || text.includes('[unit]'))
|
||||||
|
|
||||||
// Send the final text
|
// Send the final text
|
||||||
message.say(text);
|
message.say(text);
|
||||||
|
|
1
dictionary/activities.json
Normal file
1
dictionary/activities.json
Normal file
|
@ -0,0 +1 @@
|
||||||
|
["baseball", "basketball", "football", "golf", "soccer", "tennis"]
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dictionary/celebreties.json
Normal file
1
dictionary/celebreties.json
Normal file
|
@ -0,0 +1 @@
|
||||||
|
["50 Cent", "Adam Sandler", "Alden Ehrenreich", "Anne Hathaway", "Arnold Schwarzenegger", "Axl Rose", "Ben Stein", "Ben Stiller", "Bernie Sanders", "Bill Murray", "Brad Pitt", "Channing Tatum", "Christian Bale", "Daniel Radcliffe", "Danny Masterson", "David Lee Roth", "Donald Trump", "Duff McKagan", "Eddie Van Halen", "Edward Norton", "Eminem", "Emma Stone", "Emma Watson", "Geoffery Lewis", "Hillary Clinton", "Hugh Jackson", "Jack Black", "Jake Epstein", "Jesse Eisenberg", "Jessica Alba", "John Cena", "John Travolta", "Johnny Depp", "Julia Garner", "Julia Roberts", "Justin Bieber", "Laura Prepon", "Lena Dunham", "Leonardo DiCaprio", "Marilyn Manson", "Megan Fox", "Michael Cera", "Morgan Freeman", "Natalie Portman", "Nicolas Cage", "Orlando Bloom", "Rihanna", "Robert Downey Jr.", "Robin Willians", "Ryan Seacrest", "Scarlett Johansson", "Serj Tankian", "Shia LaBeouf", "Slash", "Tom Cruise", "Tom Hanks", "Trent Reznor", "Will Ferrell", "Will Smith", "Woody Allen", "Zac Effron"]
|
1
dictionary/countries.json
Normal file
1
dictionary/countries.json
Normal file
|
@ -0,0 +1 @@
|
||||||
|
["Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Ashmore and Cartier Islands", "Australia", "Austria", "Azerbaijan", "Bahrain", "Bangladesh", "Barbados", "Bassas da India", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "British Virgin Islands", "Brunei", "Bulgaria", "Burkina Faso", "Burma", "Burundi", "Cambodia", "Cameroon", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Clipperton Island", "Cocos Islands", "Colombia", "Comoros", "Cook Islands", "Coral Sea Islands", "Costa Rica", "Cote d'Ivoire", "Croatia", "Czech Republic", "Democratic Republic of the Congo", "Denmark", "Dhekelia", "Djibouti", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Europa Island", "Falkland Islands", "Faroe Islands", "Federated States of Micronesia", "Fiji", "Finland", "France", "French Guiana", "French Polynesia", "French Southern and Antarctic Lands", "Gabon", "Gaza Strip", "Georgia", "Germany", "Ghana", "Gibraltar", "Glorioso Islands", "Greece", "Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guernsey", "Guinea", "Guinea_Bissau", "Guyana", "Haiti", "Heard Island and McDonald Islands", "Holy See", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Isle of Man", "Israel", "Italy", "Jan Mayen", "Japan", "Jersey", "Jordan", "Juan de Nova Island", "Kazakhstan", "Kenya", "Kiribati", "Kuwait", "Kyrgyzstan", "Laos", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macau", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Moldova", "Monaco", "Mongolia", "Montserrat", "Morocco", "Mozambique", "Namibia", "Nauru", "Navassa Island", "Nepal", "Netherlands", "Netherlands Antilles", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "North Korea", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paracel Islands", "Paraguay", "Peru", "Philippines", "Pitcairn Islands", "Poland", "Portugal", "Puerto Rico", "Qatar", "Republic of the Congo", "Reunion", "Romania", "Russia", "Rwanda", "Saint Helena", "Saint Kitts and Nevis", "Saint Lucia", "Saint Pierre and Miquelon", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia and Montenegro", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich Islands", "South Korea", "Spain", "Spratly Islands", "Sri Lanka", "Sudan", "Suriname", "Svalbard", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "The Bahamas", "The Gambia", "Timor_Leste", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tromelin Island", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Virgin Islands", "Wake Island", "Wallis and Futuna", "West Bank", "Western Sahara", "Yemen", "Zambia", "Zimbabwe"]
|
1
dictionary/diseases.json
Normal file
1
dictionary/diseases.json
Normal file
|
@ -0,0 +1 @@
|
||||||
|
["AIDS", "Alzheimer's", "Down syndrome", "Hepatitis A", "Hepatitis B", "Hepatitis C", "acute inclusion body encephalitis", "albinism", "alveolitis", "amnesia", "anal sacculitis", "anaphylaxis", "appendicitis", "arsenic poisoning", "arthritis", "athlete's foot", "autism", "bipolar disorder", "bronchitis", "deep vein thrombosis", "delirium", "dementia", "depression", "diarrhea", "dissociative identity disorder", "ebola", "epilepsy", "fibrosis", "folliculitis", "gastroenteritis", "halitosis", "herpes", "hyperthyroidism", "hypothyroidism", "influenza", "laryngitis", "lead poisoning", "lupus", "meningitis", "mental retardation", "mercury poisoning", "osteoporosis", "pinkeye", "plague", "rheumatoid arthritis", "sacculitis", "schizophrenia", "smallpox", "strep throat", "tetanus", "tonsilitis", "type I diabetes", "type II diabetes", "typhoid fever"]
|
1
dictionary/elements.json
Normal file
1
dictionary/elements.json
Normal file
|
@ -0,0 +1 @@
|
||||||
|
["actinium", "aluminum", "americium", "antimony", "argon", "arsenic", "astatine", "barium", "berkelium", "beryllium", "bismusth", "boron", "bromine", "cadmium", "calcium", "californium", "carbon", "cerium", "cesium", "chlorine", "chromium", "cobalt", "copper", "curium", "dysprosium", "einsteinium", "erbium", "europium", "fermium", "fluorine", "francium", "gadolinium", "gallium", "germanium", "gold", "hafnium", "helium", "holmium", "hydrogen", "indium", "iodine", "iridium", "iron", "krypton", "lanthanum", "lawrencium", "lead", "lithium", "lutetium", "magnesium", "manganese", "mendelevium", "mercury", "molybdenum", "neodymium", "neon", "neptunium", "nickel", "niobium", "nitrogen", "nobelium", "osmium", "oxygen", "palladium", "phosphorus", "platinum", "plutonium", "polonium", "potassium", "praseodymium", "promethium", "protactinium", "radium", "radon", "rhenium", "rhodium", "rubidium", "ruthenium", "samarium", "scandium", "selenium", "silicon", "silver", "sodium", "strontium", "sulfur", "tantalum", "technetium", "tellurium", "terbium", "thallium", "thorium", "thulium", "tin", "titanium", "tungsten", "uranium", "vanadium", "xenon", "ytterbium", "yttrium", "zinc", "zircomium"]
|
1
dictionary/hobbies.json
Normal file
1
dictionary/hobbies.json
Normal file
|
@ -0,0 +1 @@
|
||||||
|
["PC building", "acting", "antique-shopping", "baking", "bank robbery", "baseball", "basket-weaving", "calligraphy", "camping", "cannibalism", "carving", "cooking", "cooking meth", "crocheting", "dancing", "deep-sea diving", "drawing", "drug dealing", "fantasy football", "farming", "filmmaking", "fishing", "flying", "gaming", "gardening", "glassblowing", "golf", "guitar", "hiking", "human dissection", "hunting", "knitting", "money laundering", "mushroom cultivation", "music composition", "opera singing", "painting", "partying", "piano", "poetry", "politics", "pottery", "programming", "pyrotechnics", "resurrecting the dead", "running", "sailing", "scuba diving", "sculpting", "sewing", "shopping", "singing", "skateboarding", "skydiving", "spearfishing", "taxidermy", "theater", "time travel", "toy collecting", "urban exploration", "web-browsing", "whittling", "writing"]
|
1
dictionary/music.json
Normal file
1
dictionary/music.json
Normal file
File diff suppressed because one or more lines are too long
1
dictionary/noun.json
Normal file
1
dictionary/noun.json
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dictionary/prefixes.json
Normal file
1
dictionary/prefixes.json
Normal file
|
@ -0,0 +1 @@
|
||||||
|
["a", "anti", "auto", "bi", "circum", "contra", "endo", "exo", "extra", "fore", "homo", "hyper", "in", "intra", "mega", "mid", "mini", "mis", "mono", "non", "octo", "omni", "over", "penta", "post", "pre", "pseudo", "psycho", "pyro", "quad", "semi", "sub", "super", "trans", "tri", "un", "under", "uni"]
|
1
dictionary/pronouns.json
Normal file
1
dictionary/pronouns.json
Normal file
|
@ -0,0 +1 @@
|
||||||
|
["he", "it", "she", "they"]
|
1
dictionary/states.json
Normal file
1
dictionary/states.json
Normal file
|
@ -0,0 +1 @@
|
||||||
|
["Alabama", "Alaska", "Arizona", "Arkansas", "Baden-W\u00fcrttemberg", "Bavaria", "Berlin", "Brandenburg", "Bremen", "California", "Colorado", "Connecticut", "Delaware", "Florida", "Georgia", "Hamburg", "Hawaii", "Hesse", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Lower Saxony", "Maine", "Maryland", "Massachusetts", "Mecklenburg-Vorpommern", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota", "North Rhine-Westphalia", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhineland-Palatinate", "Rhode Island", "Saarland", "Saxony", "Saxony-Anhalt", "Schleswig-Holstein", "South Carolina", "South Dakota", "Tennessee", "Texas", "Thuringia", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming"]
|
1
dictionary/titles.json
Normal file
1
dictionary/titles.json
Normal file
|
@ -0,0 +1 @@
|
||||||
|
["Colonel", "Daddy", "Dojo", "Dr.", "Governor", "Granny", "Honorable", "King", "Madam", "Mama", "Master", "Mayor", "Mistress", "Moist", "Mr.", "Mrs.", "Ms", "Old", "Papa", "Prince", "Professor", "Queen", "Sensei", "Sergeant", "Sir"]
|
1
dictionary/units.json
Normal file
1
dictionary/units.json
Normal file
|
@ -0,0 +1 @@
|
||||||
|
["bucket", "centimeter", "century", "cubic centimeter", "cup", "day", "foot", "gallon", "gram", "handful", "hour", "inch", "joule", "kilogram", "kilojoule", "kilometer", "kilovolt", "kilowatt", "light-year", "liter", "megaton", "megawatt", "meter", "microfarad", "mile", "milliampere", "milliliter", "millisecond", "millivolt", "milliwatt", "minute", "month", "mouthful", "ounce", "pint", "pound", "quart", "second", "tablespoon", "teaspoon", "ton", "yard", "year"]
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue