This commit is contained in:
Dragon Fire
2021-04-03 19:51:10 -04:00
parent b6bf3e4bfa
commit b448e771de
+1 -1
View File
@@ -36,7 +36,7 @@ module.exports = class ScreenshotCommand extends Command {
async run(msg, { url }) {
try {
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) return msg.reply('This site is NSFW.');
}