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