mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Fix
This commit is contained in:
@@ -36,7 +36,7 @@ module.exports = class ScreenshotCommand extends Command {
|
|||||||
async run(msg, { url }) {
|
async run(msg, { url }) {
|
||||||
try {
|
try {
|
||||||
if (!msg.channel.nsfw) {
|
if (!msg.channel.nsfw) {
|
||||||
const nsfw = await isUrlNSFW(url.href);
|
const nsfw = await isUrlNSFW(url.href, this.client.adultSiteList);
|
||||||
if (nsfw === null) return msg.reply('This site did not respond, or sent an error.');
|
if (nsfw === null) 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