music.np: length -> nowPlaying.length
This commit is contained in:
		
							parent
							
								
									adc7b3de6d
								
							
						
					
					
						commit
						3d5fc4b2ab
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -533,7 +533,7 @@ command.callback = async function (msg, line) {
 | 
				
			||||||
      const timeEnd = formatTime(nowPlaying.length);
 | 
					      const timeEnd = formatTime(nowPlaying.length);
 | 
				
			||||||
      const timePos = formatTime(position);
 | 
					      const timePos = formatTime(position);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      const progress = position / length;
 | 
					      const progress = position / nowPlaying.length;
 | 
				
			||||||
      const barLength = Math.round(progress * NOWPLAYING_BAR_LENGTH);
 | 
					      const barLength = Math.round(progress * NOWPLAYING_BAR_LENGTH);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      const bar = `\`[${"=".repeat(barLength)}${" ".repeat(
 | 
					      const bar = `\`[${"=".repeat(barLength)}${" ".repeat(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue