From 4e41a035ed9f8862d1c83a84961a972e8616d129 Mon Sep 17 00:00:00 2001
From: SileNce5k <ozzynexus@gmail.com>
Date: Tue, 5 Apr 2022 16:36:32 +0200
Subject: [PATCH] Move custom command files into own directory

---
 commands/misc/custom.js                              | 12 ++++++------
 server/message.js                                    |  2 +-
 util/{ => custom_commands}/addCustomCommand.js       |  0
 .../customReplaceWithVariables.js                    |  2 +-
 util/{ => custom_commands}/deleteCustomCommand.js    |  0
 util/{ => custom_commands}/editCustomCommand.js      |  0
 util/{ => custom_commands}/getAllCustomCommands.js   |  0
 .../{ => custom_commands}/getOwnerOfCustomCommand.js |  0
 util/{ => custom_commands}/renameCustomCommand.js    |  0
 9 files changed, 8 insertions(+), 8 deletions(-)
 rename util/{ => custom_commands}/addCustomCommand.js (100%)
 rename util/{ => custom_commands}/customReplaceWithVariables.js (94%)
 rename util/{ => custom_commands}/deleteCustomCommand.js (100%)
 rename util/{ => custom_commands}/editCustomCommand.js (100%)
 rename util/{ => custom_commands}/getAllCustomCommands.js (100%)
 rename util/{ => custom_commands}/getOwnerOfCustomCommand.js (100%)
 rename util/{ => custom_commands}/renameCustomCommand.js (100%)

diff --git a/commands/misc/custom.js b/commands/misc/custom.js
index 87fe6f3..31abd25 100644
--- a/commands/misc/custom.js
+++ b/commands/misc/custom.js
@@ -1,11 +1,11 @@
-const addCustomCommand = require("../../util/addCustomCommand");
-const deleteCustomCommand = require("../../util/deleteCustomCommand");
-const getAllCustomCommands = require("../../util/getAllCustomCommands");
-const getOwnerOfCustomCommand = require("../../util/getOwnerOfCustomCommand");
-const renameCustomCommand = require("../../util/renameCustomCommand");
+const addCustomCommand = require("../../util/custom_commands/addCustomCommand");
+const deleteCustomCommand = require("../../util/custom_commands/deleteCustomCommand");
+const getAllCustomCommands = require("../../util/custom_commands/getAllCustomCommands");
+const getOwnerOfCustomCommand = require("../../util/custom_commands/getOwnerOfCustomCommand");
+const renameCustomCommand = require("../../util/custom_commands/renameCustomCommand");
 const Discord = require('discord.js');
 const fs = require('fs');
-const editCustomCommand = require("../../util/editCustomCommand");
+const editCustomCommand = require("../../util/custom_commands/editCustomCommand");
 
 module.exports = {
 	name: 'custom',
diff --git a/server/message.js b/server/message.js
index 71791dc..394f601 100644
--- a/server/message.js
+++ b/server/message.js
@@ -1,5 +1,5 @@
 const fs = require('fs');
-const customReplaceWithVariables = require('../util/customReplaceWithVariables');
+const customReplaceWithVariables = require('../util/custom_commands/customReplaceWithVariables');
 
 module.exports = function(client, owners, message, globalPrefix){
 	let prefix = globalPrefix;
diff --git a/util/addCustomCommand.js b/util/custom_commands/addCustomCommand.js
similarity index 100%
rename from util/addCustomCommand.js
rename to util/custom_commands/addCustomCommand.js
diff --git a/util/customReplaceWithVariables.js b/util/custom_commands/customReplaceWithVariables.js
similarity index 94%
rename from util/customReplaceWithVariables.js
rename to util/custom_commands/customReplaceWithVariables.js
index 70dfdf2..1a5e967 100644
--- a/util/customReplaceWithVariables.js
+++ b/util/custom_commands/customReplaceWithVariables.js
@@ -1,4 +1,4 @@
-const getNickname = require('./getNickname')
+const getNickname = require('../getNickname')
 
 module.exports = function(customMessage, message, prefix, globalPrefix){
 
diff --git a/util/deleteCustomCommand.js b/util/custom_commands/deleteCustomCommand.js
similarity index 100%
rename from util/deleteCustomCommand.js
rename to util/custom_commands/deleteCustomCommand.js
diff --git a/util/editCustomCommand.js b/util/custom_commands/editCustomCommand.js
similarity index 100%
rename from util/editCustomCommand.js
rename to util/custom_commands/editCustomCommand.js
diff --git a/util/getAllCustomCommands.js b/util/custom_commands/getAllCustomCommands.js
similarity index 100%
rename from util/getAllCustomCommands.js
rename to util/custom_commands/getAllCustomCommands.js
diff --git a/util/getOwnerOfCustomCommand.js b/util/custom_commands/getOwnerOfCustomCommand.js
similarity index 100%
rename from util/getOwnerOfCustomCommand.js
rename to util/custom_commands/getOwnerOfCustomCommand.js
diff --git a/util/renameCustomCommand.js b/util/custom_commands/renameCustomCommand.js
similarity index 100%
rename from util/renameCustomCommand.js
rename to util/custom_commands/renameCustomCommand.js