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 | |
| 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')
| -rw-r--r-- | src/commands/fun/quote.ts | 7 | ||||
| -rw-r--r-- | src/commands/zerotwo/darling.ts | 15 | ||||
| -rw-r--r-- | src/config.json | 2 |
3 files changed, 13 insertions, 11 deletions
diff --git a/src/commands/fun/quote.ts b/src/commands/fun/quote.ts index 1173d62..5149bbc 100644 --- a/src/commands/fun/quote.ts +++ b/src/commands/fun/quote.ts @@ -4,6 +4,7 @@ import hsq from 'harvey-specter-quotes' import aq from 'animequote' import cq from 'chewbacca-quotes' import asq from 'arnie-quote' +import ztq from 'zero-two-quotes' import { Command, CommandoMessage } from 'discord.js-commando'; import emoji from 'emoji-random'; @@ -29,7 +30,7 @@ module.exports = class QuoteFun extends Command { args: [ { key: 'atCharacter', - prompt: 'Would you like a specific type?\nTypes: movie, harvey specter, anime, chewbacca or arnold schwarzenegger.', + prompt: 'Would you like a specific type?\nTypes: movie, harvey specter, anime, chewbacca, arnold schwarzenegger or zero two.', type: 'string' } ], @@ -57,7 +58,7 @@ module.exports = class QuoteFun extends Command { msg.reply(asq() + ' ' + emoji.random()) break case 6: - msg.reply(lotrq() + ' ' + emoji.random()) + msg.reply(ztq() + ' ' + emoji.random()) break } } else if (atCharacter == 'movie' || atCharacter == 'movies') { @@ -70,6 +71,8 @@ module.exports = class QuoteFun extends Command { msg.reply(cq() + ' ' + emoji.random()) } else if (atCharacter == 'arnold schwarzenegger' || atCharacter == 'arnold' || atCharacter == 'schwarzenegger') { msg.reply(asq() + ' ' + emoji.random()) + } else if (atCharacter == 'zero two' || atCharacter == 'ditf' || atCharacter == '002' || atCharacter == 'darling in the franxx') { + msg.reply(ztq() + ' ' + emoji.random()) } else { msg.reply('That was not at option. ' + emoji.random()) } 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) { diff --git a/src/config.json b/src/config.json index 5f7a5fc..c2a7f39 100644 --- a/src/config.json +++ b/src/config.json @@ -1,5 +1,5 @@ { "secret":"Njk5NDczMjYzOTk4MjcxNDg5.XpU5oQ.btZuxVudhNllSQY6CxrXXtMJm9A", "yt-api-key":"AIzaSyCeG1lQAeInv4vjFv_eTL9IFAFNdQC9Nk8", - "version":"8.1.1" + "version":"8.1.2" }
\ No newline at end of file |