Fix file reference

This commit is contained in:
Skylar Grant 2023-05-16 13:30:57 -04:00
parent de6b9ec4e4
commit 44a4d572bb

View File

@ -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;