Update index.js
This commit is contained in:
		
							parent
							
								
									1373d9c24d
								
							
						
					
					
						commit
						23ce0a884d
					
				| 
						 | 
					@ -15,6 +15,7 @@ const Result = {
 | 
				
			||||||
module.exports = {
 | 
					module.exports = {
 | 
				
			||||||
  grab: async function (channel, config, cb) {
 | 
					  grab: async function (channel, config, cb) {
 | 
				
			||||||
    config = utils.loadConfig(config)
 | 
					    config = utils.loadConfig(config)
 | 
				
			||||||
 | 
					    channel.lang = channel.lang || config.lang || null
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const utcDate = utils.getUTCDate()
 | 
					    const utcDate = utils.getUTCDate()
 | 
				
			||||||
    const dates = Array.from({ length: config.days }, (_, i) => utcDate.add(i, 'd'))
 | 
					    const dates = Array.from({ length: config.days }, (_, i) => utcDate.add(i, 'd'))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue