mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 06:28:53 +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
@@ -1,4 +1,6 @@
|
||||
const { embedOptions, botOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const botOptions = config.get('botOptions');
|
||||
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
@@ -25,14 +27,21 @@ module.exports = {
|
||||
|
||||
const commandListString = commandList.join('\n');
|
||||
|
||||
const supportServerString = botOptions.serverInviteUrl
|
||||
? `${embedOptions.icons.support} **Support server**\nJoin the support server for help or to suggest improvements: \n**${botOptions.serverInviteUrl}**\n\n`
|
||||
: '';
|
||||
const addBotString = botOptions.botInviteUrl
|
||||
? `${embedOptions.icons.bot} **Enjoying ${botOptions.name}?**\nAdd me to another server: \n**[Click me!](${botOptions.botInviteUrl})**`
|
||||
: '';
|
||||
|
||||
return await interaction.editReply({
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setDescription(
|
||||
`${embedOptions.icons.rule} **List of commands**\n` +
|
||||
`${commandListString}\n\n` +
|
||||
`${embedOptions.icons.support} **Support server**\nJoin the support server for help or to suggest improvements: \n**${botOptions.serverInviteUrl}**\n\n` +
|
||||
`${embedOptions.icons.bot} **Enjoying ${botOptions.name}?**\nAdd me to another server: \n**[Click me!](${botOptions.botInviteUrl})**`
|
||||
supportServerString +
|
||||
addBotString
|
||||
)
|
||||
.setColor(embedOptions.colors.info)
|
||||
]
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const { getUptimeFormatted } = require('../../utils/system/getUptimeFormatted');
|
||||
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
|
||||
const osu = require('node-os-utils');
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions, ffmpegFilterOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const ffmpegFilterOptions = config.get('ffmpegFilterOptions');
|
||||
const { notInVoiceChannel, notInSameVoiceChannel } = require('../../utils/validation/voiceChannelValidator');
|
||||
const { queueDoesNotExist, queueNoCurrentTrack } = require('../../utils/validation/queueValidator');
|
||||
const {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const { notInVoiceChannel, notInSameVoiceChannel } = require('../../utils/validation/voiceChannelValidator');
|
||||
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
|
||||
const { useQueue } = require('discord-player');
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions, botOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const botOptions = config.get('botOptions');
|
||||
const { notInVoiceChannel, notInSameVoiceChannel } = require('../../utils/validation/voiceChannelValidator');
|
||||
const { queueDoesNotExist } = require('../../utils/validation/queueValidator');
|
||||
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const { notInVoiceChannel, notInSameVoiceChannel } = require('../../utils/validation/voiceChannelValidator');
|
||||
const { queueDoesNotExist, queueNoCurrentTrack } = require('../../utils/validation/queueValidator');
|
||||
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions, playerOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const playerOptions = config.get('playerOptions');
|
||||
const { notInVoiceChannel, notInSameVoiceChannel } = require('../../utils/validation/voiceChannelValidator');
|
||||
const { queueDoesNotExist, queueNoCurrentTrack } = require('../../utils/validation/queueValidator');
|
||||
const { SlashCommandBuilder, EmbedBuilder, ActionRowBuilder, ButtonBuilder } = require('discord.js');
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const { notInVoiceChannel, notInSameVoiceChannel } = require('../../utils/validation/voiceChannelValidator');
|
||||
const { queueDoesNotExist, queueNoCurrentTrack } = require('../../utils/validation/queueValidator');
|
||||
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions, playerOptions, botOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const botOptions = config.get('botOptions');
|
||||
const playerOptions = config.get('playerOptions');
|
||||
const { notInVoiceChannel, notInSameVoiceChannel } = require('../../utils/validation/voiceChannelValidator');
|
||||
const { cannotJoinVoiceOrTalk } = require('../../utils/validation/permissionValidator');
|
||||
const { transformQuery } = require('../../utils/validation/searchQueryValidator');
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions, playerOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const playerOptions = config.get('playerOptions');
|
||||
const { notInVoiceChannel, notInSameVoiceChannel } = require('../../utils/validation/voiceChannelValidator');
|
||||
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
|
||||
const { useQueue } = require('discord-player');
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const { notInVoiceChannel, notInSameVoiceChannel } = require('../../utils/validation/voiceChannelValidator');
|
||||
const { queueDoesNotExist } = require('../../utils/validation/queueValidator');
|
||||
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const { notInVoiceChannel, notInSameVoiceChannel } = require('../../utils/validation/voiceChannelValidator');
|
||||
const { queueDoesNotExist, queueNoCurrentTrack } = require('../../utils/validation/queueValidator');
|
||||
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const { notInVoiceChannel, notInSameVoiceChannel } = require('../../utils/validation/voiceChannelValidator');
|
||||
const { queueDoesNotExist, queueIsEmpty } = require('../../utils/validation/queueValidator');
|
||||
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const { notInVoiceChannel, notInSameVoiceChannel } = require('../../utils/validation/voiceChannelValidator');
|
||||
const { queueDoesNotExist, queueNoCurrentTrack } = require('../../utils/validation/queueValidator');
|
||||
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const { notInVoiceChannel, notInSameVoiceChannel } = require('../../utils/validation/voiceChannelValidator');
|
||||
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
|
||||
const { useQueue } = require('discord-player');
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const { notInVoiceChannel, notInSameVoiceChannel } = require('../../utils/validation/voiceChannelValidator');
|
||||
const { queueDoesNotExist } = require('../../utils/validation/queueValidator');
|
||||
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const { notValidGuildId } = require('../../utils/validation/systemCommandValidator');
|
||||
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const { notValidGuildId } = require('../../utils/validation/systemCommandValidator');
|
||||
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const { notValidGuildId } = require('../../utils/validation/systemCommandValidator');
|
||||
const { getUptimeFormatted } = require('../../utils/system/getUptimeFormatted');
|
||||
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
|
||||
|
||||
@@ -1,193 +0,0 @@
|
||||
const { ActivityType, PresenceUpdateStatus } = require('discord.js');
|
||||
// Description: Config file for Cadence Discord bot.
|
||||
|
||||
// General options for information about the bot.
|
||||
module.exports.botOptions = {
|
||||
name: 'Cadence',
|
||||
websiteUrl: 'Unknown',
|
||||
botInviteUrl: 'Unknown',
|
||||
serverInviteUrl: 'Unknown'
|
||||
};
|
||||
|
||||
// Sharding options for the bot.
|
||||
// See https://old.discordjs.dev/#/docs/discord.js/main/typedef/ShardingManagerOptions for valid options.
|
||||
// Do not change if you don't know what you are doing.
|
||||
module.exports.shardingOptions = {
|
||||
totalShards: 'auto',
|
||||
shardList: 'auto',
|
||||
mode: 'process',
|
||||
respawn: true
|
||||
};
|
||||
|
||||
// Logging options for the bot, can set logging level to file and console separately.
|
||||
module.exports.loggerOptions = {
|
||||
minimumLogLevel: 'debug',
|
||||
minimumLogLevelConsole: 'info'
|
||||
};
|
||||
|
||||
// systemGuildIds: Array of guild ids where system commands should be available.
|
||||
// systemMessageChannelId: Channel id where system messages should be sent, such as error events.
|
||||
// systemUserId: User id of the system administrator, used for pining on certain system messages.
|
||||
module.exports.systemOptions = {
|
||||
systemGuildIds: ['Guild id where system commands can be used'],
|
||||
systemMessageChannelId: 'Channel id where system messages will be sent',
|
||||
systemUserId: 'User id of the system administrator which will receive pings on certain system messages'
|
||||
};
|
||||
|
||||
// Options for presence/activity status. You can change from watching to listening, playing, etc.
|
||||
// See https://discord-api-types.dev/api/discord-api-types-v10/enum/ActivityType for valid activity types.
|
||||
// See https://discord-api-types.dev/api/discord-api-types-v10/enum/PresenceUpdateStatus for valid presence status.
|
||||
module.exports.presenceStatusOptions = {
|
||||
status: PresenceUpdateStatus.Online,
|
||||
activities: [
|
||||
{
|
||||
name: '/help 🎶',
|
||||
type: ActivityType.Listening
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
// Options for embed messages, like colors and custom emojis.
|
||||
module.exports.embedOptions = {
|
||||
colors: {
|
||||
success: '#23A55A',
|
||||
warning: '#F0B232',
|
||||
error: '#F23F43',
|
||||
info: '#5865F2',
|
||||
note: '#80848E'
|
||||
},
|
||||
icons: {
|
||||
logo: '🤖',
|
||||
beta: '`beta`',
|
||||
new: '`new`',
|
||||
rule: '📒',
|
||||
support: '❓',
|
||||
bot: '🤖',
|
||||
server: '🖥️',
|
||||
discord: '🌐',
|
||||
audioPlaying: '🎶',
|
||||
audioStartedPlaying: '🎶',
|
||||
success: '✅',
|
||||
error: '⚠️',
|
||||
warning: '⚠️',
|
||||
disable: '🚫',
|
||||
enable: '✅',
|
||||
disabled: '✅',
|
||||
enabled: '✅',
|
||||
nextTrack: '⏭️',
|
||||
previousTrack: '⏮️',
|
||||
pauseResumeTrack: '⏯️',
|
||||
shuffleQueue: '🔀',
|
||||
loop: '🔁',
|
||||
loopAction: '🔁',
|
||||
autoplay: '♾️',
|
||||
autoplayAction: '♾️',
|
||||
looping: '🔁',
|
||||
autoplaying: '♾️',
|
||||
skipped: '⏭️',
|
||||
back: '⏮️',
|
||||
pauseResumed: '⏯️',
|
||||
shuffled: '🔀',
|
||||
volume: '🔊',
|
||||
volumeIsMuted: '🔇',
|
||||
volumeChanged: '🔊',
|
||||
volumeMuted: '🔇',
|
||||
queue: '🎶',
|
||||
sourceArbitrary: '🎵',
|
||||
sourceAppleMusic: '🎵',
|
||||
sourceYouTube: '🎵',
|
||||
sourceSoundCloud: '🎵',
|
||||
sourceSpotify: '🎵'
|
||||
}
|
||||
};
|
||||
|
||||
// Options for the discord-player player.
|
||||
module.exports.playerOptions = {
|
||||
leaveOnEmpty: true,
|
||||
leaveOnEmptyCooldown: 300_000,
|
||||
leaveOnEnd: true,
|
||||
leaveOnEndCooldown: 300_000,
|
||||
leaveOnStop: true,
|
||||
leaveOnStopCooldown: 300_000,
|
||||
defaultVolume: 50,
|
||||
maxQueueSize: 10_000,
|
||||
maxHistorySize: 100,
|
||||
bufferingTimeout: 3_000,
|
||||
connectionTimeout: 30_000,
|
||||
progressBar: {
|
||||
length: 14,
|
||||
timecodes: false,
|
||||
separator: '┃',
|
||||
indicator: '🔘',
|
||||
leftChar: '▬',
|
||||
rightChar: '▬'
|
||||
}
|
||||
};
|
||||
|
||||
// Options to be used by the ffmpeg, and available ffmpeg filters shown in filter commands.
|
||||
module.exports.ffmpegFilterOptions = {
|
||||
threadAmount: '2',
|
||||
availableFilters: [
|
||||
{
|
||||
label: 'Bass boost',
|
||||
value: 'bassboost_low',
|
||||
description: 'Boost the bass of the audio.',
|
||||
emoji: '🔉'
|
||||
},
|
||||
{
|
||||
label: 'Bass boost high',
|
||||
value: 'bassboost',
|
||||
description: 'Boost the bass of the audio a lot.',
|
||||
emoji: '🔊'
|
||||
},
|
||||
{
|
||||
label: 'Night core',
|
||||
value: 'nightcore',
|
||||
description: 'Speed up the audio (higher pitch).',
|
||||
emoji: '🐱'
|
||||
},
|
||||
{
|
||||
label: 'Lo-fi',
|
||||
value: 'lofi',
|
||||
description: 'Low fidelity effect (lower quality).',
|
||||
emoji: '📻'
|
||||
},
|
||||
{
|
||||
label: 'Vaporwave',
|
||||
value: 'vaporwave',
|
||||
description: 'Slow down the audio (lower pitch).',
|
||||
emoji: '🌸'
|
||||
},
|
||||
{
|
||||
label: 'Ear rape',
|
||||
value: 'earrape',
|
||||
description: 'Extremely loud and distorted audio.',
|
||||
emoji: '👂'
|
||||
},
|
||||
{
|
||||
label: '8D',
|
||||
value: '8D',
|
||||
description: 'Simulate 8D audio effect (surround).',
|
||||
emoji: '🎧'
|
||||
},
|
||||
{
|
||||
label: 'Treble',
|
||||
value: 'treble',
|
||||
description: 'Increase the high frequencies.',
|
||||
emoji: '🎼'
|
||||
},
|
||||
{
|
||||
label: 'Normalizer',
|
||||
value: 'normalizer',
|
||||
description: 'Normalize the audio (avoid distortion).',
|
||||
emoji: '🎶'
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
// Options for load testing the bot. If enabled, the bot will join the specified channels and play specified track source.
|
||||
module.exports.loadTestOptions = {
|
||||
enabled: false,
|
||||
trackUrl: 'https://www.youtube.com/watch?v=tTR4D9h3zAE',
|
||||
channelIdsToJoin: []
|
||||
};
|
||||
@@ -1,5 +1,7 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions, systemOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const systemOptions = config.get('systemOptions');
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions, systemOptions, presenceStatusOptions, loadTestOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const systemOptions = config.get('systemOptions');
|
||||
const presenceStatusOptions = config.get('presenceStatusOptions');
|
||||
const loadTestOptions = config.get('loadTestOptions');
|
||||
const { postBotStats } = require('../../utils/other/postBotStats.js');
|
||||
const { startLoadTest } = require('../../utils/other/startLoadTest');
|
||||
const { Events, EmbedBuilder } = require('discord.js');
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions, systemOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const systemOptions = config.get('systemOptions');
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions, botOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const botOptions = config.get('botOptions');
|
||||
const { cannotSendMessageInChannel } = require('../../utils/validation/permissionValidator');
|
||||
const { Events, EmbedBuilder } = require('discord.js');
|
||||
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions, systemOptions, botOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const botOptions = config.get('botOptions');
|
||||
const systemOptions = config.get('systemOptions');
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
// Emitted when the player queue encounters error (general error with queue)
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions, systemOptions, botOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const botOptions = config.get('botOptions');
|
||||
const systemOptions = config.get('systemOptions');
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
// Emitted when the player encounters an error while streaming audio track
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
const logger = require('../../services/logger');
|
||||
const { embedOptions, systemOptions, botOptions } = require('../../config');
|
||||
const config = require('config');
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const botOptions = config.get('botOptions');
|
||||
const systemOptions = config.get('systemOptions');
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
// Emitted when the audio player fails to load the stream for a track
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
require('dotenv').config();
|
||||
const { shardingOptions } = require('./config');
|
||||
const shardingOptions = require('config').get('shardingOptions');
|
||||
const logger = require('./services/logger');
|
||||
const { ShardingManager, ShardEvents } = require('discord.js');
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const pino = require('pino');
|
||||
const { loggerOptions } = require('../config');
|
||||
const config = require('config');
|
||||
const loggerOptions = config.get('loggerOptions');
|
||||
|
||||
const targets = [
|
||||
{
|
||||
|
||||
@@ -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