Removed unnecessary logs
This commit is contained in:
		
							parent
							
								
									de672a341f
								
							
						
					
					
						commit
						78778e54d7
					
				
					 2 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
					@ -8,7 +8,6 @@ exports.run = async (message, args) => {
 | 
				
			||||||
  if (args[0].toLowerCase() === "disable") {
 | 
					  if (args[0].toLowerCase() === "disable") {
 | 
				
			||||||
    if (args[1] && args[1].match(/^<?[@#]?[&!]?\d+>?$/) && args[1] >= 21154535154122752) {
 | 
					    if (args[1] && args[1].match(/^<?[@#]?[&!]?\d+>?$/) && args[1] >= 21154535154122752) {
 | 
				
			||||||
      const id = args[1].replace("@", "").replace("#", "").replace("!", "").replace("&", "").replace("<", "").replace(">", "");
 | 
					      const id = args[1].replace("@", "").replace("#", "").replace("!", "").replace("&", "").replace("<", "").replace(">", "");
 | 
				
			||||||
      console.log(id);
 | 
					 | 
				
			||||||
      if (guildDB.disabledChannels.includes(id)) return `${message.author.mention}, I'm already disabled in this channel!`;
 | 
					      if (guildDB.disabledChannels.includes(id)) return `${message.author.mention}, I'm already disabled in this channel!`;
 | 
				
			||||||
      guildDB.disabledChannels.push(id);
 | 
					      guildDB.disabledChannels.push(id);
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,6 @@ exports.run = async (message) => {
 | 
				
			||||||
  const sortedValues = Object.entries(counts).sort((a, b) => {
 | 
					  const sortedValues = Object.entries(counts).sort((a, b) => {
 | 
				
			||||||
    return b[1] - a[1];
 | 
					    return b[1] - a[1];
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
  console.log(sortedValues);
 | 
					 | 
				
			||||||
  for (const [key, value] of sortedValues) {
 | 
					  for (const [key, value] of sortedValues) {
 | 
				
			||||||
    countArray.push(`**${key}**: ${value}`);
 | 
					    countArray.push(`**${key}**: ${value}`);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue