mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 05:54:33 +02:00
Fix
This commit is contained in:
@@ -40,7 +40,7 @@ module.exports = class ScreenshotCommand extends Command {
|
|||||||
const parsedNewURL = new URL(newURL);
|
const parsedNewURL = new URL(newURL);
|
||||||
if (this.client.adultSiteList.includes(parsedNewURL.host)) nsfw = true;
|
if (this.client.adultSiteList.includes(parsedNewURL.host)) nsfw = true;
|
||||||
} catch {
|
} catch {
|
||||||
nsfw = false;
|
return msg.reply('This site did not respond, or sent an error.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (nsfw) return msg.reply('This site is NSFW.');
|
if (nsfw) return msg.reply('This site is NSFW.');
|
||||||
|
|||||||
Reference in New Issue
Block a user