This commit is contained in:
Ashley Graves 2024-10-16 01:23:48 +02:00
parent a85c33a1b5
commit c1cefcc22b

View file

@ -50,6 +50,7 @@ module.exports = {
result.publishedDate = new Date(result.publishedDate).toLocaleDateString('en-us', { weekday: "long", year: "numeric", month: "short", day: "numeric" }); result.publishedDate = new Date(result.publishedDate).toLocaleDateString('en-us', { weekday: "long", year: "numeric", month: "short", day: "numeric" });
const footerText = ([ const footerText = ([
result.engine,
result.filesize, result.filesize,
`${result.seed} S`, `${result.seed} S`,
`${result.leech} L`, `${result.leech} L`,
@ -64,10 +65,9 @@ module.exports = {
const embed = new EmbedBuilder() const embed = new EmbedBuilder()
.setAuthor({ .setAuthor({
name: result.engine, name: result.title,
url: result.parsed_url.slice(0, 2).join("://") url: result.url
}) })
.setTitle(result.title)
.setURL(result.url) .setURL(result.url)
.setColor("#cba6f7") .setColor("#cba6f7")
.setDescription(description) .setDescription(description)