Remove moment and moment-duration-format

This commit is contained in:
Daniel Odendahl Jr
2017-08-30 22:14:24 +00:00
parent 158716a453
commit 7d1adaec39
14 changed files with 36 additions and 36 deletions
+2 -3
View File
@@ -1,7 +1,6 @@
const Command = require('../../structures/Command');
const { MessageEmbed } = require('discord.js');
const snekfetch = require('snekfetch');
const moment = require('moment');
const { GITHUB_LOGIN } = process.env;
module.exports = class GitHubCommand extends Command {
@@ -48,9 +47,9 @@ module.exports = class GitHubCommand extends Command {
.addField(' Language',
body.language || 'N/A', true)
.addField(' Created',
moment(body.created_at).format('MMMM Do YYYY'), true)
new Date(body.created_at).toDateString(), true)
.addField(' Modified',
moment(body.updated_at).format('MMMM Do YYYY'), true);
new Date(body.updated_at).toDateString(), true);
return msg.embed(embed);
} catch (err) {
if (err.status === 404) return msg.say('Could not find any results.');