mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
snekfetch 4.0.0
This commit is contained in:
@@ -14,7 +14,8 @@ module.exports = class DoomsdayClockCommand extends Command {
|
||||
|
||||
async run(msg) {
|
||||
try {
|
||||
const { text } = await snekfetch.get('https://thebulletin.org/timeline');
|
||||
const { raw } = await snekfetch.get('https://thebulletin.org/timeline');
|
||||
const text = raw.toString();
|
||||
const time = text.match(/IT IS (.+) MINUTES TO MIDNIGHT/)[0];
|
||||
const desc = text.match(/<div class="body-text"><span class="timeline-year">(.+)<\/span>: (.+)<\/div>/);
|
||||
return msg.say(stripIndents`
|
||||
|
||||
Reference in New Issue
Block a user