mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
I don't need this
This commit is contained in:
@@ -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!`);
|
||||
|
||||
Reference in New Issue
Block a user