I don't need this

This commit is contained in:
Daniel Odendahl Jr
2018-09-20 16:40:00 +00:00
parent 42bd597db7
commit 457498eb4d
+1 -1
View File
@@ -36,7 +36,7 @@ module.exports = class GoogleDoodleCommand extends Command {
const { body } = await request.get(`https://www.google.com/doodles/json/${year}/${month}`);
if (!body.length) return msg.say('Could not find any results.');
const data = body[latest ? 0 : Math.floor(Math.random() * body.length)];
const runDate = moment.utc(new Date(data.run_date_array.join('-'))).format('MMMM Do, YYYY');
const runDate = moment.utc(data.run_date_array.join('-')).format('MMMM Do, YYYY');
return msg.say(`${runDate}: ${data.share_text}`, { files: [`https:${data.url}`] });
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);