mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 22:16:13 +00:00
feat!: Added new config system with config npm package
This commit is contained in:
1 parent
5434df7ecf
commit
2da7cb360a
38 files changed
+146
-63
No files matched your search
@@ -3,7 +3,8 @@ const logger = require('../services/logger');
|
||||
const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
const { REST, Routes } = require('discord.js');
|
||||
const { systemOptions } = require('../config');
|
||||
const config = require('config');
|
||||
const systemOptions = config.get('systemOptions');
|
||||
|
||||
const slashCommands = [];
|
||||
const systemCommands = [];
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { loadTestOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const loadTestOptions = config.get('loadTestOptions');
|
||||
|
||||
exports.startLoadTest = async (client) => {
|
||||
if (!loadTestOptions.enabled) {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
exports.cannotJoinVoiceOrTalk = async (interaction) => {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
exports.queueDoesNotExist = async (interaction, queue) => {
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
const { embedOptions, systemOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const systemOptions = config.get('systemOptions');
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
exports.notValidGuildId = async (interaction) => {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
exports.notInVoiceChannel = async (interaction) => {
|
||||
|
||||
Reference in new issue
Block a user