fix: updated imagelinks
Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
parent
c3c6e9c9ee
commit
40c53f4313
3 changed files with 3 additions and 8 deletions
|
@ -23,14 +23,9 @@ import com.kotlindiscord.kord.extensions.commands.converters.impl.string
|
|||
import com.kotlindiscord.kord.extensions.extensions.Extension
|
||||
import com.kotlindiscord.kord.extensions.extensions.ephemeralSlashCommand
|
||||
import com.kotlindiscord.kord.extensions.types.respond
|
||||
import com.overzealous.remark.Options
|
||||
import com.overzealous.remark.Remark
|
||||
import com.prof18.rssparser.RssParser
|
||||
import com.prof18.rssparser.model.RssChannel
|
||||
import com.prof18.rssparser.model.RssItem
|
||||
import dev.kord.rest.builder.message.EmbedBuilder.Limits.title
|
||||
import net.moonleay.rssbot.data.database.repository.RSSRepository
|
||||
import net.moonleay.rssbot.data.database.repository.SubscriptionRepository
|
||||
import net.moonleay.rssbot.extensions.components.FeedColor
|
||||
import net.moonleay.rssbot.util.EmbedColor
|
||||
import net.moonleay.rssbot.util.EmbedUtil
|
||||
|
@ -92,7 +87,7 @@ class SendFeedExtension : Extension() {
|
|||
if (it.description == null) "No description" else Remark(EmbedUtil.getHTMLtoMarkdownOptions()).convertFragment(it.description!!),
|
||||
it.link ?: "https://moonleay.net/",
|
||||
it.image ?: "",
|
||||
if (it.link != null) EmbedUtil.getSiteLogo(it.link!!) else "https://static.moonleay.net/img/no-image.png",
|
||||
if (it.link != null) EmbedUtil.getSiteLogo(it.link!!) else "https://static.moonleay.net/img/rssbot/no-image.png",
|
||||
"Manual Feed",
|
||||
it.pubDate?: "unknown"
|
||||
)
|
||||
|
|
|
@ -96,7 +96,7 @@ object FeedUpdater : ICronjob {
|
|||
),
|
||||
rssData.link ?: "https://moonleay.net/",
|
||||
rssData.image ?: "",
|
||||
if (rssData.link != null) EmbedUtil.getSiteLogo(rssData.link!!) else "https://static.moonleay.net/img/no-image.png",
|
||||
if (rssData.link != null) EmbedUtil.getSiteLogo(rssData.link!!) else "https://static.moonleay.net/img/rssbot/no-image.png",
|
||||
"Manual Feed",
|
||||
rssData.pubDate ?: "unknown"
|
||||
)
|
||||
|
|
|
@ -190,7 +190,7 @@ object MessageUtil {
|
|||
ebb.color = color.color.color
|
||||
ebb.footer {
|
||||
this.text = "> rssbot, ($feedName) \n/ pub $published \n/ rel ${dtf.format(now)}"
|
||||
this.icon = "https://static.moonleay.net/img/rss.png"
|
||||
this.icon = "https://static.moonleay.net/img/rssbot/rss.png"
|
||||
}
|
||||
ebb.thumbnail {
|
||||
this.url = imageUrl
|
||||
|
|
Loading…
Reference in a new issue