mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user