forked from embee/woomy
		
	a
This commit is contained in:
		
							parent
							
								
									5440ae0daa
								
							
						
					
					
						commit
						93926545ae
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -6,7 +6,6 @@ const { utc } = require('moment')
 | 
				
			||||||
module.exports = client => {
 | 
					module.exports = client => {
 | 
				
			||||||
  client.music = { guilds: {} }
 | 
					  client.music = { guilds: {} }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // MUSIC - TIMESTAMP
 | 
					 | 
				
			||||||
  client.createTimestamp = function (s) {
 | 
					  client.createTimestamp = function (s) {
 | 
				
			||||||
    if (s >= 3600) {
 | 
					    if (s >= 3600) {
 | 
				
			||||||
      return utc(s * 1000).format('HH:mm:ss')
 | 
					      return utc(s * 1000).format('HH:mm:ss')
 | 
				
			||||||
| 
						 | 
					@ -64,7 +63,7 @@ module.exports = client => {
 | 
				
			||||||
    const guild = client.music.getGuild(message.guild.id)
 | 
					    const guild = client.music.getGuild(message.guild.id)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!message.member.voice.channel && !guild.voiceChannel) {
 | 
					    if (!message.member.voice.channel && !guild.voiceChannel) {
 | 
				
			||||||
      return message.reply('you are not in a voice channel!')
 | 
					      return message.reply('You have to be connected to a voice channel to use this command!')
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const vc = message.member.voice.channel
 | 
					    const vc = message.member.voice.channel
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue