Update utils.js

This commit is contained in:
freearhey 2021-02-10 17:10:23 +03:00
parent 1d11c69ba4
commit bace0e81d6
1 changed files with 0 additions and 6 deletions

View File

@ -203,12 +203,6 @@ utils.writeToLog = function (country, msg, url) {
this.appendToFile('error.log', now.toISOString() + ' ' + line + '\n') this.appendToFile('error.log', now.toISOString() + ' ' + line + '\n')
} }
utils.filterNSFW = function (arr) {
const sfwCategories = categories.filter(c => !c.nsfw).map(c => c.name)
return arr.filter(i => sfwCategories.includes(i.category))
}
utils.sleep = function (ms) { utils.sleep = function (ms) {
return function (x) { return function (x) {
return new Promise(resolve => setTimeout(() => resolve(x), ms)) return new Promise(resolve => setTimeout(() => resolve(x), ms))