const Command = require('../../structures/Command'); const request = require('node-superfetch'); const { decode: decodeHTML } = require('html-entities'); const { MessageEmbed } = require('discord.js'); const { embedURL } = require('../../util/Util'); module.exports = class DoomsdayClockCommand extends Command { constructor(client) { super(client, { name: 'doomsday-clock', group: 'events', memberName: 'doomsday-clock', description: 'Responds with the current time of the Doomsday Clock.', credit: [ { name: 'Bulletin of the Atomic Scientists', url: 'https://thebulletin.org/', reason: 'Doomsday Clock Data', reasonURL: 'https://thebulletin.org/doomsday-clock/current-time/' } ] }); } async run(msg) { try { const { text } = await request.get('https://thebulletin.org/doomsday-clock/past-statements/'); const time = text.match(/