Allow everyone ping dot command
This commit is contained in:
		
							parent
							
								
									fa8a038e5b
								
							
						
					
					
						commit
						323ac19276
					
				| @ -4,7 +4,7 @@ module.exports = { | |||||||
| 	name: "ping", | 	name: "ping", | ||||||
| 	description: "pong", | 	description: "pong", | ||||||
| 	usage: "ping pong", | 	usage: "ping pong", | ||||||
| 	permission: "devTeam", | 	permission: "everyone", | ||||||
| 	async execute(message, commandData) { | 	async execute(message, commandData) { | ||||||
| 		if (fn.dotCommands.checkPermissions(this.permission, message.author.id)) { | 		if (fn.dotCommands.checkPermissions(this.permission, message.author.id)) { | ||||||
| 			try { | 			try { | ||||||
|  | |||||||
| @ -286,6 +286,8 @@ const functions = { | |||||||
| 				return matchFound; | 				return matchFound; | ||||||
| 			} else if (type === "owner") { | 			} else if (type === "owner") { | ||||||
| 				return config.ownerId === userId; | 				return config.ownerId === userId; | ||||||
|  | 			} else if (type === "everyone") { | ||||||
|  | 				return true; | ||||||
| 			} | 			} | ||||||
| 
 | 
 | ||||||
| 		} | 		} | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user