diff options
| author | 8cy <[email protected]> | 2020-04-28 11:08:22 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-28 11:08:22 -0700 |
| commit | 0f2a43a4b07121e125ad386843c42a16a2c5cd25 (patch) | |
| tree | a255b4ccc06f3a7267f0b5e3563212a047f9dfed /src/commands/zerotwo/darling.ts | |
| parent | remove lotr, v.8.1.1 (diff) | |
| download | dep-core-0f2a43a4b07121e125ad386843c42a16a2c5cd25.tar.xz dep-core-0f2a43a4b07121e125ad386843c42a16a2c5cd25.zip | |
change darling quote calc method, add 002 quotes to quote, v8.1.2
Diffstat (limited to 'src/commands/zerotwo/darling.ts')
| -rw-r--r-- | src/commands/zerotwo/darling.ts | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/commands/zerotwo/darling.ts b/src/commands/zerotwo/darling.ts index 18fb3ac..173407b 100644 --- a/src/commands/zerotwo/darling.ts +++ b/src/commands/zerotwo/darling.ts @@ -63,14 +63,13 @@ module.exports = class DarlingZeroTwo extends Command { .then(result => console.log(result)) .catch(err => console.log(err)) - var quoteNum = Math.floor((Math.random() * 3) + 1); - switch (quoteNum) { - case 1: var quoteResult = 'I think I have taken a liking to you. Won\'t you be my darling?'; break - case 2: var quoteResult = 'I like the look in your eyes. It makes my heart race. You are now my darling!'; break - case 3: var quoteResult = 'Wow, your taste makes my heart race. It bites and lingers... The taste of danger. You are now my darling!'; break - default: var quoteResult = 'I think I have taken a liking to you. Won\'t you be my darling?'; break - } - msg.reply(quoteResult) + const quotes = [ + 'I think I have taken a liking to you. Won\'t you be my darling?', + 'I like the look in your eyes. It makes my heart race. You are now my darling!', + 'Wow, your taste makes my heart race. It bites and lingers... The taste of danger. You are now my darling!' + ] + let quoteNum = quotes[Math.floor(Math.random() * quotes.length)] + msg.reply(quoteNum) } else if (!guild) { msg.reply('I haven\'t found my darling yet! To set one, do `uwu!darling set`. ' + emoji.random()) } else if (guild) { |