From 0f2a43a4b07121e125ad386843c42a16a2c5cd25 Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Tue, 28 Apr 2020 11:08:22 -0700 Subject: change darling quote calc method, add 002 quotes to quote, v8.1.2 --- src/commands/fun/quote.ts | 7 +++++-- src/commands/zerotwo/darling.ts | 15 +++++++-------- 2 files changed, 12 insertions(+), 10 deletions(-) (limited to 'src/commands') 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) { -- cgit v1.2.3