Update index.js

This commit is contained in:
Aleksandr Statciuk 2021-10-07 02:52:10 +03:00
parent 1373d9c24d
commit 23ce0a884d
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ const Result = {
module.exports = {
grab: async function (channel, config, cb) {
config = utils.loadConfig(config)
channel.lang = channel.lang || config.lang || null
const utcDate = utils.getUTCDate()
const dates = Array.from({ length: config.days }, (_, i) => utcDate.add(i, 'd'))