aboutsummaryrefslogtreecommitdiff
path: root/commands/quote.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/quote.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/quote.js')
-rw-r--r--commands/quote.js37
1 files changed, 18 insertions, 19 deletions
diff --git a/commands/quote.js b/commands/quote.js
index 9aa9be0..ce7b56a 100644
--- a/commands/quote.js
+++ b/commands/quote.js
@@ -1,5 +1,5 @@
-/****************************************
- *
+/** **************************************
+ *
* Quote: Command for AleeBot
* Copyright (C) 2017-2020 Alee Productions
*
@@ -15,16 +15,16 @@
*
* 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');
+ const Discord = require('discord.js');
-let NewQuote;
+ let NewQuote;
function GetNewQuote(quoteNum = -1) {
NewQuote = new Discord.RichEmbed();
-
+
let quo = require('../storage/quotes.json').quotes;
if (quoteNum == -1) {
@@ -47,19 +47,18 @@ let NewQuote;
return NewQuote;
}
- const newquote = GetNewQuote();
- message.reply('Alright, here\'s your quote.')
- message.channel.send(newquote);
+ const newquote = GetNewQuote();
+ message.reply('Alright, here\'s your quote.');
+ message.channel.send(newquote);
};
exports.conf = {
- aliases: [],
- guildOnly: false,
- };
- exports.help = {
- name: 'quote',
- description: 'Tells you quotes',
- usage: 'quote',
- category: '- Quote Commands',
- };
- \ No newline at end of file
+ aliases: [],
+ guildOnly: false,
+};
+exports.help = {
+ name: 'quote',
+ description: 'Tells you quotes',
+ usage: 'quote',
+ category: '- Quote Commands',
+};