forked from Droid-Builder-Web-Team/discord_bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquotes.js
More file actions
121 lines (101 loc) · 6.6 KB
/
quotes.js
File metadata and controls
121 lines (101 loc) · 6.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
var obiwanQuotes = [ // Obi-Wan Kenobi Quotes
"You must do what you feel is right, of course. \n-Obi-Wan Kenobi",
"Mos Eisley Spaceport. You will never find a more wretched hive of scum and villainy. We must be cautious. \n-Obi-Wan Kenobi",
"Your eyes can deceive you. Don’t trust them. \n-Obi-Wan Kenobi",
"Remember... the Force will be with you, always. \n-Obi-Wan Kenobi",
"In my experience, there is no such thing as luck. \n-Obi-Wan Kenobi",
"These aren't the droids you're looking for. \n-Obi-Wan Kenobi",
"I felt a great disturbance in the Force, as if millions of voices suddenly cried out in terror and were suddenly silenced. \n-Obi-Wan Kenobi",
"Use the Force, Luke.\n-Obi-Wan Kenobi",
"You can't win, Darth. If you strike me down, I shall become more powerful than you could possibly imagine. \n-Obi-Wan Kenobi",
"That's no moon. It's a space station. \n-Obi-Wan Kenobi",
"Luke! Don't give in to hate. That leads to the Dark Side. \n-Obi-Wan Kenobi",
"Who's the more foolish, the fool or the fool who follows him? \n-Obi-Wan Kenobi",
"And these blast points, too accurate for Sandpeople. Only Imperial Stormtroopers are so precise. \n-Obi-Wan Kenobi"
];
var darthvaderQuotes = ["I find your lack of faith disturbing. \n-Darth Vader",
"The circle is now complete. When I left you, I was but the learner. Now I am the master. \n-Darth Vader",
"The Force is with you, young Skywalker, but you are not a Jedi yet. \n-Darth Vader",
"No. I am your father. \n-Darth Vader",
"Impressive. Most impressive. \n-Darth Vader",
"I am altering the deal. Pray I don't alter it any further. \n-Darth Vader",
"You underestimate the power of the Dark Side. If you will not fight, then you will meet your destiny. \n-Darth Vader",
"You have failed me for the last time, Admiral! \n-Darth Vader",
"The Force is strong with this one. \n-Darth Vader",
"The ability to destroy a planet is insignificant next to the power of the Force. \n-Darth Vader"];
var yodaQuotes = [ "Do. Or do not. There is no try. \n-Yoda",
"You must unlearn what you have learned. \n-Yoda",
"When nine hundred years old you reach, look as good you will not. \n-Yoda",
"Truly wonderful, the mind of a child is. \n-Yoda",
"A Jedi uses the Force for knowledge and defense, never for attack. \n-Yoda",
"Adventure. Excitement. A Jedi craves not these things. \n-Yoda",
"Size matters not. Judge me by my size, do you? \n-Yoda",
"Fear is the path to the dark side…fear leads to anger…anger leads to hate…hate leads to suffering. \n-Yoda",
"Wars not make one great. \n-Yoda",
"Luminous beings are we…not this crude matter. \n-Yoda",
"Difficult to see. Always in motion is the future. \n-Yoda",
"Control, control, you must learn control! \n-Yoda"];
var lukeskywalkerQuotes = [ "I'll never turn to the Dark Side. You've failed, your highness. I am a Jedi, like my father before me. \n-Luke Skywalker",
"If there's a bright center to the universe, you're on the planet that it's farthest from. \n-Luke Skywalker",
"I'm Luke Skywalker. I'm here to rescue you. \n-Luke Skywalker",
"The Force is strong in my family. My father has it. I have it. My sister has it. You have that power, too. \n-Luke Skywalker",
"But I was going into Tosche Station to pick up some power converters! \n-Luke Skywalker"];
var hansoloQuotes = ["Chewie...we're home. \n-Han Solo",
"Never tell me the odds. \n-Han Solo",
"Women always figure out the truth. Always. \n-Han Solo",
"Fast ship? You've never heard of the Millennium Falcon? It's the ship that made the Kessel Run in less than twelve parsecs. \n-Han Solo",
"Great shot, kid, that was one in a million! \n-Han Solo",
"Boring conversation anyway. LUKE, WE'RE GONNA HAVE COMPANY! \n-Han Solo",
"No reward is worth this. \n-Han Solo",
"Wonderful girl. Either I'm going to kill her or I'm beginning to like her. \n-Han Solo",
"Look, Your Worshipfulness, let's get one thing straight. I take orders from just one person: me. \n-Han Solo"];
var leiaQuotes = [ "Help me, Obi-Wan Kenobi. You're my only hope. \n-Princess Leia Organa",
"Aren't you a little short for a stormtrooper? \n-Princess Leia Organa",
"Someone has to save our skins. Into the garbage chute, fly boy. \n-Princess Leia Organa",
"Will someone get this big walking carpet out of my way? \n-Leia Organa",
"You needn't worry about your reward. If money is all that you love, then that's what you'll receive. \n-Leia Organa"];
var c3poQuotes = [ "I suggest a new strategy, R2: let the Wookiee win. \n-C-3PO",
"We seem to be made to suffer. It's our lot in life. \n-C-3PO",
"Sir, the possibility of successfully navigating an asteroid field is approximately 3,720 to 1. \n-C-3PO",
"Sir, it's quite possible this asteroid is not entirely stable. \n-C-3PO",
"Don’t call me a mindless philosopher, you overweight glob of grease! \n-C-3PO"];
var emperorQuotes = ["Young fool... Only now, at the end, do you understand... \n-The Emperor",
"Your feeble skills are no match for the power of the Dark Side. \n-The Emperor",
"Now, you will pay the price for your lack of vision! \n-The Emperor",
"I will make it legal. \n-Darth Sidious"];
var miscQuotes = ["Many Bothans died to bring us this information. \n-Mon Mothma",
"Charming to the last. You don't know how hard I found it, signing the order to terminate your life. \n-Governor Tarkin",
"It's a trap! \n-Admiral Ackbar",
"So this is how liberty dies…with thunderous applause. \n-Padmé Amidala",
"He's no good to me dead. \n-Boba Fett",
"I've got a bad feeling about this. \n-Various characters in Star Wars",
"May the force be with you. \n-Various characters in Star Wars"];
var quoteArray = [
// Obi-Wan Kenobi Quotes
obiwanQuotes,
// Darth Vader Quotes
darthvaderQuotes,
// Yoda Quotes
yodaQuotes,
// Luke Skywalker Quotes
lukeskywalkerQuotes,
// Han Solo Quotes
hansoloQuotes,
// Princess Leia Organa Quotes
leiaQuotes,
// C-3PO Quotes
c3poQuotes,
// Emperor / Darth Sidious Quotes
emperorQuotes,
// Miscellaneous Quotes
miscQuotes
];
module.exports = {
generateQuote: function() {
// First get a random array, then get a random index from that array
// Math.random() returns a number between 0 and 1. Math.floor rounds a number down to the nearest whole number.
var randomArray = quoteArray[Math.floor(Math.random() * quoteArray.length)];
var randomQuote = randomArray[Math.floor(Math.random() * randomArray.length)];
return randomQuote;
}
};