Fix file reference

This commit is contained in:
Skylar Grant 2023-05-16 13:30:57 -04:00
parent 3a87d936d5
commit 5586fca8ed

View File

@ -255,7 +255,7 @@ const functions = {
},
checkCommand(commandData) {
if (commandData.isCommand) {
const validCommands = require('./config.json').validCommands;
const validCommands = require('../data/config.json').validCommands;
commandData.isValid = validCommands.includes(commandData.command);
// Add exceptions for messages that contain only a link
if (commandData.args.startsWith('http')) commandData.isValid = false;