diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-07-23 11:41:02 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-07-23 11:41:02 -0400 |
| commit | ed456ef581c5acd852a924d9cc274a259b2d8ce5 (patch) | |
| tree | 33be62f54239fa6f6b61b9488dbfde329ae1fd78 /commands/vtquote.js | |
| parent | 1ce861095b2793a1b49546c0adf460fbc2fc5d9f (diff) | |
| download | AleeBot-ed456ef581c5acd852a924d9cc274a259b2d8ce5.tar.gz AleeBot-ed456ef581c5acd852a924d9cc274a259b2d8ce5.tar.bz2 AleeBot-ed456ef581c5acd852a924d9cc274a259b2d8ce5.zip | |
Converted to Discord.JS v12, starting database
Diffstat (limited to 'commands/vtquote.js')
| -rw-r--r-- | commands/vtquote.js | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/commands/vtquote.js b/commands/vtquote.js deleted file mode 100644 index 7d1ccd0..0000000 --- a/commands/vtquote.js +++ /dev/null @@ -1,64 +0,0 @@ -/** ************************************** - * - * VTQuote: Command for AleeBot - * Copyright (C) 2017-2020 Alee Productions - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * *************************************/ -module.exports.run = async (client, message) => { - const Discord = require('discord.js'); - - let VictorQuote; - - function GetVictorQuote(quoteNum = -1) { - VictorQuote = new Discord.RichEmbed(); - - let quo = require('../storage/vtquotes.json').quotes; - - if (quoteNum == -1) { - quoteNum = Math.floor(Math.random() * 1000) % quo.length; - quo=quo[quoteNum]; - } - - const author = quo.author; - const authorImage = quo.authorImage; - const quote = quo.quote; - const year = quo.year; - const url = quo.url; - - VictorQuote.setAuthor(author, authorImage); - VictorQuote.setColor('#1fd619'); - VictorQuote.setDescription(quote); - VictorQuote.setFooter('- ' + year); - VictorQuote.setURL(url); - - return VictorQuote; - } - - const victorquote = GetVictorQuote(); - message.reply('Alright, here\'s your Victor quote.'); - message.channel.send(victorquote); -}; - -exports.conf = { - aliases: [], - guildOnly: false, -}; -exports.help = { - name: 'vtquote', - description: 'Tells you quotes when victor accidentaly swore.', - usage: 'vtquote', - category: '- Quote Commands', -}; |
