Rotate command

This commit is contained in:
Dragon Fire
2021-02-11 10:38:55 -05:00
parent 7e5c750014
commit faadaf8520
4 changed files with 71 additions and 3 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ module.exports = class ScreenshotCommand extends Command {
try {
if (!this.pornList) await this.fetchPornList();
const parsed = url.parse(site);
if (this.pornList.some(pornURL => parsed.host === pornURL) && !msg.channel.nsfw) {
if (!msg.channel.nsfw && this.pornList.some(pornURL => parsed.host === pornURL)) {
return msg.reply('This site is NSFW.');
}
const { body } = await request.get(`https://image.thum.io/get/width/1920/crop/675/noanimate/${site}`);