summaryrefslogtreecommitdiff
path: root/commands/addquote.js
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-02-25 23:13:39 -0500
committerAndrew Lee <andrew@alee14.me>2025-02-25 23:13:39 -0500
commit5777f96394444dab18a81d6f085ac81df3e62008 (patch)
tree47dc895e50fa95b52a894bf0806e1a6c1edc8818 /commands/addquote.js
parentde5ee661cad7b1fef0f319cbaccd888cb75a1dd4 (diff)
downloadAleeBot-2.13.0.tar.gz
AleeBot-2.13.0.tar.bz2
AleeBot-2.13.0.zip
2.13 Release (finally); Added more API entries; Proper loggingv2.13.0
Diffstat (limited to 'commands/addquote.js')
-rw-r--r--commands/addquote.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/addquote.js b/commands/addquote.js
index cedee4d..6eae015 100644
--- a/commands/addquote.js
+++ b/commands/addquote.js
@@ -85,7 +85,7 @@ module.exports.run = async (client, message) => {
return;
}
} else if (msg.content.startsWith('http') && (msg.content.endsWith('.jpg') || msg.content.endsWith('.jpeg') || msg.content.endsWith('.png'))) {
- newAuthorImage = message.content;
+ newAuthorImage = msg.content;
} else {
await dmChannel.send('Invalid input. Please provide an image URL or attach an image file.');
collector.stop();
@@ -157,7 +157,7 @@ module.exports.run = async (client, message) => {
await dmChannel.send('Invalid file type. Please attach a .jpg or .png image.');
}
} else if (imageResponse.first().content.startsWith('http') && (imageResponse.first().content.endsWith('.jpg') || imageResponse.first().content.endsWith('.jpeg') || imageResponse.first().content.endsWith('.png'))) {
- newAuthorImage = message.content;
+ newAuthorImage = imageResponse.first().content;
} else {
await dmChannel.send('Invalid input. Please provide an image URL or attach an image file.');
}