music: debug time
This commit is contained in:
		
							parent
							
								
									f45c24dcfc
								
							
						
					
					
						commit
						d7473c45f3
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -119,6 +119,12 @@ async function createVoiceConnection(guild_id, voice_id, text_id) {
 | 
				
			||||||
  connection._music_eventEnd = async function () {
 | 
					  connection._music_eventEnd = async function () {
 | 
				
			||||||
    if (connection._music_queue.length > 0) {
 | 
					    if (connection._music_queue.length > 0) {
 | 
				
			||||||
      const next = connection._music_queue.splice(0, 1);
 | 
					      const next = connection._music_queue.splice(0, 1);
 | 
				
			||||||
 | 
					      hf.bot.guilds
 | 
				
			||||||
 | 
					        .get(guild_id)
 | 
				
			||||||
 | 
					        .channels.get(text_id)
 | 
				
			||||||
 | 
					        .createMessage(
 | 
				
			||||||
 | 
					          `DEBUG: \`\`\`\nnext = ${next}\nnext.url = ${next.url}\nnext.type = ${next.type}\nnext.addedBy = ${next.addedBy}\n\nqueue length: ${connect._music_queue.length}\n\`\`\``
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
      await enqueue(
 | 
					      await enqueue(
 | 
				
			||||||
        guild_id,
 | 
					        guild_id,
 | 
				
			||||||
        voice_id,
 | 
					        voice_id,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue