diff --git a/commands/search/anime.js b/commands/search/anime.js index 54382f40..04085c53 100644 --- a/commands/search/anime.js +++ b/commands/search/anime.js @@ -3,7 +3,6 @@ const { RichEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); const { promisify } = require('tsubaki'); const xml = promisify(require('xml2js').parseString); -const moment = require('moment'); const { ANIMELIST_LOGIN } = process.env; module.exports = class AnimeCommand extends Command { @@ -40,7 +39,8 @@ module.exports = class AnimeCommand extends Command { .replace(/(')/g, '\'') .replace(/(—)/g, '—') .replace(/(")/g, '"') - .replace(/(&)/g, '&'); + .replace(/(&)/g, '&') + .replace(/(")/g, '"'); const embed = new RichEmbed() .setColor(0x2D54A2) .setAuthor('My Anime List', 'https://i.imgur.com/R4bmNFz.png') @@ -53,9 +53,9 @@ module.exports = class AnimeCommand extends Command { .addField('Episodes', anime.entry[0].episodes[0], true) .addField('Start Date', - moment(anime.entry[0].start_date[0]).format('MMMM Do YYYY'), true) + anime.entry[0].start_date[0], true) .addField('End Date', - moment(anime.entry[0].end_date[0]).format('MMMM Do YYYY'), true); + anime.entry[0].end_date[0], true); return msg.embed(embed); } catch (err) { return msg.say('Error: No Results.'); diff --git a/commands/search/manga.js b/commands/search/manga.js index a44b7120..cefea314 100644 --- a/commands/search/manga.js +++ b/commands/search/manga.js @@ -3,7 +3,6 @@ const { RichEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); const { promisify } = require('tsubaki'); const xml = promisify(require('xml2js').parseString); -const moment = require('moment'); const { ANIMELIST_LOGIN } = process.env; module.exports = class MangaCommand extends Command { @@ -40,7 +39,8 @@ module.exports = class MangaCommand extends Command { .replace(/(')/g, '\'') .replace(/(—)/g, '—') .replace(/(")/g, '"') - .replace(/(&)/g, '&'); + .replace(/(&)/g, '&') + .replace(/(")/g, '"'); const embed = new RichEmbed() .setColor(0x2D54A2) .setAuthor('My Anime List', 'https://i.imgur.com/R4bmNFz.png') @@ -53,9 +53,9 @@ module.exports = class MangaCommand extends Command { .addField('Volumes / Chapters', `${manga.entry[0].volumes[0]} / ${manga.entry[0].chapters[0]}`, true) .addField('Start Date', - moment(manga.entry[0].start_date[0]).format('MMMM Do YYYY'), true) + manga.entry[0].start_date[0], true) .addField('End Date', - moment(manga.entry[0].end_date[0]).format('MMMM Do YYYY'), true); + manga.entry[0].end_date[0], true); return msg.embed(embed); } catch (err) { return msg.say('Error: No Results.');