aboutsummaryrefslogtreecommitdiff
path: root/commands/vtquote.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-05-22 20:36:26 -0400
committerAndrew Lee <alee14498@protonmail.com>2020-05-22 20:36:26 -0400
commitfc76d7c73ae9ffec6be86fc7d9d9e8c9a14605ab (patch)
tree0f4930fd8655e550c974bc404b93149cf7eab4ac /commands/vtquote.js
parentbbb982243b6564e526fb581f55946704cdf256a3 (diff)
downloadAleeBot-fc76d7c73ae9ffec6be86fc7d9d9e8c9a14605ab.tar.gz
AleeBot-fc76d7c73ae9ffec6be86fc7d9d9e8c9a14605ab.tar.bz2
AleeBot-fc76d7c73ae9ffec6be86fc7d9d9e8c9a14605ab.zip
Added more ALP exclusive logs & cleaning up code
Diffstat (limited to 'commands/vtquote.js')
-rw-r--r--commands/vtquote.js95
1 files changed, 47 insertions, 48 deletions
diff --git a/commands/vtquote.js b/commands/vtquote.js
index e21db08..7d1ccd0 100644
--- a/commands/vtquote.js
+++ b/commands/vtquote.js
@@ -1,5 +1,5 @@
-/****************************************
- *
+/** **************************************
+ *
* VTQuote: Command for AleeBot
* Copyright (C) 2017-2020 Alee Productions
*
@@ -15,51 +15,50 @@
*
* 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',
- };
- \ No newline at end of file
+ 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',
+};