mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 13:53:12 +02:00
Fix Doomsday Clock
This commit is contained in:
@@ -18,7 +18,8 @@ module.exports = class DoomsdayClockCommand extends Command {
|
||||
const time = text.match(/<h3 class="uabb-infobox-title">(.+)<\/h3>/)[1];
|
||||
const year = text.match(/<h5 class="uabb-infobox-title-prefix">(.+)<\/h5>/)[1];
|
||||
const description = text.match(/<div class="uabb-infobox-text uabb-text-editor"><p>(.+)<\/p>/)[1];
|
||||
const image = text.match(/<img class="uabb-photo-img wp-image-[0-9]+" src="(.+)" alt=/)[1];
|
||||
const image = text
|
||||
.match(/<img class="uabb-photo-img wp-image-[0-9]+ size-full" src="(?:.+)" data-lazy-src="(.+)" alt=/)[1];
|
||||
const embed = new MessageEmbed()
|
||||
.setTitle(`${year}: ${time}`)
|
||||
.setColor(0x000000)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "102.0.2",
|
||||
"version": "102.0.3",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user