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; } };