From b5fbed060a7668ddccfe26a03e58f43d7ee398e7 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 21 Jun 2020 17:40:00 -0400 Subject: [PATCH] Fix --- commands/other/screenshot.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/other/screenshot.js b/commands/other/screenshot.js index f5d3d539..477cb6ab 100644 --- a/commands/other/screenshot.js +++ b/commands/other/screenshot.js @@ -57,7 +57,9 @@ module.exports = class ScreenshotCommand extends Command { async fetchPornList(force = false) { if (!force && this.pornList) return this.pornList; const { text } = await request.get('https://raw.githubusercontent.com/blocklistproject/Lists/master/porn.txt'); - this.pornList = text.split('\n').filter(url => !url.startsWith('#')).map(url => url.replace(/^(0.0.0.0 )/, '')); + this.pornList = text.split('\n') + .filter(url => url && !url.startsWith('#')) + .map(url => url.replace(/^(0.0.0.0 )/, '')); return this.postList; } };