Fix file reference
This commit is contained in:
		
							parent
							
								
									3a87d936d5
								
							
						
					
					
						commit
						5586fca8ed
					
				| @ -255,7 +255,7 @@ const functions = { | |||||||
| 		}, | 		}, | ||||||
| 		checkCommand(commandData) { | 		checkCommand(commandData) { | ||||||
| 			if (commandData.isCommand) { | 			if (commandData.isCommand) { | ||||||
| 				const validCommands = require('./config.json').validCommands; | 				const validCommands = require('../data/config.json').validCommands; | ||||||
| 				commandData.isValid = validCommands.includes(commandData.command); | 				commandData.isValid = validCommands.includes(commandData.command); | ||||||
| 				// Add exceptions for messages that contain only a link
 | 				// Add exceptions for messages that contain only a link
 | ||||||
| 				if (commandData.args.startsWith('http')) commandData.isValid = false; | 				if (commandData.args.startsWith('http')) commandData.isValid = false; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user