Revert new Dates in Anime and Manga

This commit is contained in:
Daniel Odendahl Jr
2017-05-21 15:51:06 +00:00
parent d1288fdfbd
commit c8d32ee4f6
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -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.');
+4 -4
View File
@@ -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.');