aboutsummaryrefslogtreecommitdiff
path: root/commands/quote.js
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-01-11 18:02:05 -0500
committerAndrew Lee <andrew@alee14.me>2025-01-11 18:02:05 -0500
commit7e65ae0e135098acad76b8081f34478b4efc077f (patch)
treeb7efc060fca4257a875a5a3e525e2733b6579040 /commands/quote.js
parentf5de90ba89146008af78c16e798e216efccf0c50 (diff)
downloadAleeBot-7e65ae0e135098acad76b8081f34478b4efc077f.tar.gz
AleeBot-7e65ae0e135098acad76b8081f34478b4efc077f.tar.bz2
AleeBot-7e65ae0e135098acad76b8081f34478b4efc077f.zip
Cleaned up some code, author image now support attachments
Diffstat (limited to 'commands/quote.js')
-rw-r--r--commands/quote.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/commands/quote.js b/commands/quote.js
index 02699cd..0d67b66 100644
--- a/commands/quote.js
+++ b/commands/quote.js
@@ -38,6 +38,10 @@ module.exports.run = async (client, message, args) => {
.setColor('#1fd619')
.setFooter('- ' + quote.year);
+ if (quote.url) {
+ quoteEmbed.setURL(quote.url);
+ }
+
await message.reply({ embeds: [quoteEmbed] })
} else {
message.reply('Cannot find quote, specify the correct quote id.');