fixed skip + rate
This commit is contained in:
		
							parent
							
								
									1837e6e751
								
							
						
					
					
						commit
						b6b810b4de
					
				
					 2 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -16,6 +16,11 @@ var rating = [
 | 
			
		|||
    "9/10",
 | 
			
		||||
    "10/10"
 | 
			
		||||
];
 | 
			
		||||
 | 
			
		||||
if (message.content.includes("@everyone")) {
 | 
			
		||||
  return message.channel.send('>:(');
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
    let mess = rating.random();
 | 
			
		||||
    message.channel.send(`<:star:618393201501536258> I give ${args.join(" ")} a **${mess}**`);
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -240,6 +240,8 @@ exports.setVolume = function (guild, target) {
 | 
			
		|||
exports.skip = function (guild, reason) {
 | 
			
		||||
  const g = exports.getGuild(guild.id)
 | 
			
		||||
 | 
			
		||||
  g.skippers = []
 | 
			
		||||
 | 
			
		||||
  if (g.dispatcher) {
 | 
			
		||||
    g.dispatcher.end(reason)
 | 
			
		||||
  }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue