Skip to content

Commit

Permalink
updated references to config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
vb2007 committed Dec 26, 2024
1 parent 98ed68c commit af23eb7
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/events/scripts/guildMemberAdd/welcome.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const db = require("../../../helpers/db");
const { embedColors } = require("../../../config.json");
const { embedColors } = require("../../../../config.json");
const { embedMessage } = require("../../../helpers/embeds/embed-message");

module.exports = {
Expand Down
2 changes: 1 addition & 1 deletion src/events/scripts/guildMemberRemove/goodbye.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const db = require("../../../helpers/db");
const { embedColors } = require("../../../config.json");
const { embedColors } = require("../../../../config.json");
const { embedMessage } = require("../../../helpers/embeds/embed-message");

module.exports = {
Expand Down
2 changes: 1 addition & 1 deletion src/events/scripts/messageCreate/messageLogging.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const db = require("../../../helpers/db");
const { logMessagesToLocalDatabase } = require("../../../config.json");
const { logMessagesToLocalDatabase } = require("../../../../config.json");

module.exports = {
async logMessagesToLocalDatabase(message) {
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/embeds/embed-message.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { EmbedBuilder } = require("discord.js");
const { embedColors } = require("../../config.json");
const { embedColors } = require("../../../config.json");

/**
* @param {color} color - Embed's sidebar HEX Color
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/embeds/embed-reply-moderation.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { EmbedBuilder } = require("discord.js");
const { embedColors } = require("../../config.json");
const { embedColors } = require("../../../config.json");

/**
* @param {title} title - Embed's title
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/embeds/embed-reply.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { EmbedBuilder } = require("discord.js");
const { embedColors } = require("../../config.json");
const { embedColors } = require("../../../config.json");

/**
* @param {color} color - Embed's sidebar HEX Color
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/logger.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require("fs");
const path = require("path");
const db = require("./db");
const { logToFile, logToDatabase } = require("../config.json");
const { logToFile, logToDatabase } = require("../../config.json");

const logDirectory = path.join(__dirname, "../command-logs");

Expand Down
2 changes: 1 addition & 1 deletion src/scripts/verify-config-syntax.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const fs = require("fs");
const path = require("path");
const Ajv = require("ajv");

const configPath = path.join(__dirname, "..", "config.json");
const configPath = path.join(__dirname, "..", "..", "config.json");
const configSchemaPath = path.join(__dirname, "config-schema.json");

const config = JSON.parse(fs.readFileSync(configPath, "utf-8"));
Expand Down
2 changes: 1 addition & 1 deletion src/unit-tests/command-schema.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
jest.mock('../config.json', () => ({
jest.mock('../../config.json', () => ({
databaseHostAddress: 'mock-host',
databaseName: 'mock-db',
databaseUser: 'mock-user',
Expand Down

0 comments on commit af23eb7

Please sign in to comment.