aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2021-08-01 20:36:10 -0400
committerAndrew Lee <alee14498@protonmail.com>2021-08-01 20:36:10 -0400
commit946eebabce9011d653364880ffbd2e049bd49934 (patch)
tree67a6e329140d3578b19c21e99186fefbb1647d53 /commands
parente4a3132e4b1a404b2ab6005b826b0e250e1b399b (diff)
downloadAleeBot-946eebabce9011d653364880ffbd2e049bd49934.tar.gz
AleeBot-946eebabce9011d653364880ffbd2e049bd49934.tar.bz2
AleeBot-946eebabce9011d653364880ffbd2e049bd49934.zip
Removed all refences to ALPC, replaced dbl with top.gg
Diffstat (limited to 'commands')
-rw-r--r--commands/quote.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/commands/quote.js b/commands/quote.js
index 69e810a..6daeb00 100644
--- a/commands/quote.js
+++ b/commands/quote.js
@@ -21,7 +21,7 @@ const mongo = require('../plugins/mongo');
const quoteSchema = require('../schema/quote-schema');
module.exports.run = async (client, message, args) => {
if (!['242775871059001344'].includes(message.author.id)) return message.reply('**This command is disabled due to a new system being implemented.**');
- const Discord = require('discord.js');
+ const { MessageEmbed } = require('discord.js');
let NewQuote;
let quo;
@@ -36,13 +36,14 @@ module.exports.run = async (client, message, args) => {
await mongo().then(async (mongoose) => {
try {
const quote = await quoteSchema.findOne({quoteID: "1", author: quoAuthor, authorImage: quoAuthorImage, quote: quoQuote, year: quoYear})
- /*const embed = new Discord.MessageEmbed()
+ /*
+ const embed = new MessageEmbed()
.setAuthor(quoAuthor, quoAuthorImage)
.setDescription(quoQuote)
.setColor('#1fd619')
.setFooter('- ' + quoYear);
- await message.channel.send({embed});*/
+ await message.channel.send({embeds:[embed]});*/
console.log(quote);
} finally {
await mongoose.connection.close();