diff --git a/commands/other/screenshot.js b/commands/other/screenshot.js index fd3f797d..2af8583f 100644 --- a/commands/other/screenshot.js +++ b/commands/other/screenshot.js @@ -61,8 +61,8 @@ module.exports = class ScreenshotCommand extends Command { 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 && !url.startsWith('#')) - .map(url => url.replace(/^(0.0.0.0 )/, '')); // eslint-disable-line no-control-regex + .filter(site => site && !site.startsWith('#')) + .map(site => site.replace(/^(0.0.0.0 )/, '')); // eslint-disable-line no-control-regex return this.postList; } };