mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
Fix a bug in manga and anime
This commit is contained in:
@@ -58,7 +58,7 @@ module.exports = class AnimeCommand extends Command {
|
||||
.setURL(`https://anilist.co/anime/${anime.id}`)
|
||||
.setThumbnail(anime.coverImage.large || null)
|
||||
.setTitle(anime.title.userPreferred)
|
||||
.setDescription(shorten(anime.description.replace(/(<br>)+/g, '\n')))
|
||||
.setDescription(anime.description ? shorten(anime.description.replace(/(<br>)+/g, '\n')) : 'No description.')
|
||||
.addField('❯ Status', anime.status, true)
|
||||
.addField('❯ Episodes', anime.episodes, true)
|
||||
.addField('❯ Season', `${anime.season} ${anime.startDate.year}`, true)
|
||||
|
||||
@@ -58,7 +58,7 @@ module.exports = class MangaCommand extends Command {
|
||||
.setURL(`https://anilist.co/manga/${manga.id}`)
|
||||
.setThumbnail(manga.coverImage.large || null)
|
||||
.setTitle(manga.title.userPreferred)
|
||||
.setDescription(shorten(manga.description.replace(/(<br>)+/g, '\n')))
|
||||
.setDescription(manga.description ? shorten(manga.description.replace(/(<br>)+/g, '\n')) : 'No description.')
|
||||
.addField('❯ Status', manga.status, true)
|
||||
.addField('❯ Chapters / Volumes', `${manga.chapters || '???'}/${manga.volumes || '???'}`, true)
|
||||
.addField('❯ Year', manga.startDate.year, true)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "98.3.0",
|
||||
"version": "98.3.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user