diff --git a/commands/events/doomsday-clock.js b/commands/events/doomsday-clock.js index b4b3f00a..2a4fc2a8 100644 --- a/commands/events/doomsday-clock.js +++ b/commands/events/doomsday-clock.js @@ -25,13 +25,15 @@ module.exports = class DoomsdayClockCommand extends Command { const { text } = await request.get('https://thebulletin.org/doomsday-clock/past-announcements/'); const time = text.match(/
(.+)<\/p>/)[1]; + const description = text.match(/
(.+)<\/p>/)[1] + .replace(/(.+)<\/a>/, '[$2]($1)') + .replace(/(.+)<\/em>/i, '_$1_'); const embed = new MessageEmbed() .setTitle(`${year}: ${time}`) .setColor(0x000000) .setURL('https://thebulletin.org/doomsday-clock/current-time/') .setAuthor('Bulletin of the Atomic Scientists', undefined, 'https://thebulletin.org/') - .setDescription(description.replace(/(.+)<\/a>/, '[$2]($1)')); + .setDescription(description); return msg.embed(embed); } catch (err) { return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`); diff --git a/package.json b/package.json index 97e31f34..91461abe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "110.1.1", + "version": "110.1.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {