Repository navigation
Expand file tree
/
Copy pathconfig.js
More file actions
107 lines (94 loc) · 3.92 KB
/
Copy pathconfig.js
File metadata and controls
107 lines (94 loc) · 3.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/**
* Ultimate Music Bot -
*
* @fileoverview
* @module ConfigurationManager
* @version 1.0.0
* @author GlaceYT
*/
const EnvironmentVariableProcessor = require('process').env;
class EnterpriseConfigurationManager {
constructor() {
this.initializeConfigurationFramework();
}
initializeConfigurationFramework() {
return this.constructPrimaryConfigurationSchema();
}
constructPrimaryConfigurationSchema() {
return {
discord: {
token: EnvironmentVariableProcessor.TOKEN || ""
},
mongodb: {
uri: EnvironmentVariableProcessor.MONGODB_URI || ""
},
/**
* 🎵 LAVALINK AUDIO SERVER CONFIGURATION
* Configure your Lavalink server for audio processing
*/
lavalink: {
host: EnvironmentVariableProcessor.LAVALINK_HOST || "ge-02.vortexa.cloud",
port: EnvironmentVariableProcessor.LAVALINK_PORT || 11050,
password: EnvironmentVariableProcessor.LAVALINK_PASSWORD || "glace",
secure: EnvironmentVariableProcessor.LAVALINK_SECURE === 'true' || false
},
/**
* 🤖 BOT BEHAVIOR CONFIGURATION
* Customize your bot's appearance and basic behavior
*/
bot: {
prefix: EnvironmentVariableProcessor.BOT_PREFIX || "!", // 👈 prefix (!, ?, etc)
ownerIds: ["1004206704994566164"], // 👈 ADD YOUR DISCORD ID HERE
embedColor: 0x00AE86, // 👈 Bot embed color (hex)
supportServer: "https://discord.gg/xQF9f9yUEM", // 👈 Your support server link
defaultStatus: "🎵 Ready for music!" // 👈 Bot status message
},
features: this.constructAdvancedFeatureConfiguration()
};
}
constructAdvancedFeatureConfiguration() {
return {
autoplay: true, // 👈 Auto-play related songs when queue ends
centralSystem: true, // 👈 Enable central music control system
autoVcCreation: true, // 👈 🔥 PREMIUM: Auto voice channel creation
updateStatus: true, // 👈 Update bot status with current song
autoDeaf: true, // 👈 Auto-deafen bot in voice channels
autoMute: false, // 👈 Auto-mute bot in voice channels
resetOnEnd: true // 👈 Reset player when queue ends
};
}
}
const enterpriseConfigurationInstance = new EnterpriseConfigurationManager();
const primaryApplicationConfiguration = enterpriseConfigurationInstance.initializeConfigurationFramework();
/**
* Export configuration for application-wide utilization
*
* @type {Object} Comprehensive application configuration object
*/
module.exports = primaryApplicationConfiguration;
/**
* =========================================
* 📚 CONFIGURATION GUIDE FOR USERS
* =========================================
*
* 🔑 REQUIRED SETUP (YOU MUST DO THESE):
* 1. Add your Discord bot token to "discord.token"
* 2. Add your MongoDB connection URI to "mongodb.uri"
* 3. Add your Discord user ID to "bot.ownerIds" array
*
* 🎛️ OPTIONAL CUSTOMIZATION:
* - Change bot prefix in "bot.prefix"
* - Modify embed color in "bot.embedColor"
* - Update support server link in "bot.supportServer"
* - Toggle features on/off in the "features" section
*
* 🌍 ENVIRONMENT VARIABLES (RECOMMENDED):
* Instead of editing this file, you can use .env file:
* TOKEN=your_bot_token_here
* MONGODB_URI=your_mongodb_uri_here
* BOT_PREFIX=!
*
* ⚠️ SECURITY WARNING:
* Never share your bot token or database URI publicly!
* Use environment variables in production!
*/