diff --git a/.env.example b/.env.example index 780d991fc..4511438c3 100644 --- a/.env.example +++ b/.env.example @@ -3,12 +3,15 @@ # Discord Bot Configuration DISCORD_TOKEN=your_discord_bot_token_here CLIENT_ID=your_discord_client_id_here -GUILD_ID=your_discord_guild_id_here +# GUILD_ID is optional - only needed for single-server development +# Leave blank or comment out for multi-server mode +GUILD_ID= OWNER_IDS=your_discord_id_here (optional) -# Optional — enable slash commands in every server the bot is invited to. -# Leave unset or false for single-server setup (recommended for most users). -MULTI_GUILD=false +# Multi-Guild Mode (enabled by default for all-server functionality) +# Set to true to allow the bot to work on all servers it's invited to +# Set to false and provide GUILD_ID above for single-server development only +MULTI_GUILD=true # Bot Runtime Configuration NODE_ENV=production diff --git a/src/config/application.js b/src/config/application.js index 9e058bc3a..c259e9998 100644 --- a/src/config/application.js +++ b/src/config/application.js @@ -22,7 +22,9 @@ const appConfig = { ...botConfig, token: process.env.DISCORD_TOKEN || process.env.TOKEN, clientId: process.env.CLIENT_ID, - guildId: process.env.GUILD_ID, + // Multi-guild mode: if MULTI_GUILD=true, guildId is null (global commands) + // Otherwise use GUILD_ID for single-server mode + guildId: process.env.MULTI_GUILD === 'true' ? null : (process.env.GUILD_ID || null), multiGuild: process.env.MULTI_GUILD === 'true', shop: { @@ -92,7 +94,7 @@ const appConfig = { voice: true, search: true, tools: true, - utility: true, + utility: true, community: true, fun: true, @@ -106,4 +108,4 @@ const appConfig = { Object.freeze(appConfig); -export default appConfig; \ No newline at end of file +export default appConfig; diff --git a/src/config/bot.js b/src/config/bot.js index 989657a1b..10aafe506 100644 --- a/src/config/bot.js +++ b/src/config/bot.js @@ -11,7 +11,7 @@ export const botConfig = { // - "invisible" = appears offline presence: { // Current online state shown on Discord. - status: "online", + status: "idle", // Activity lines shown under the bot name. // `type` number mapping from Discord: @@ -24,9 +24,9 @@ export const botConfig = { activities: [ { // Text users will see (example: "Playing /help | Titan Bot"). - name: "Made with ❤️", + name: "/help | Helping 𝓣𝓡𝓔 Group", // Activity type number (0 = Playing). - type: 0, + type: 1, }, ], }, @@ -46,7 +46,8 @@ export const botConfig = { deleteCommands: false, // Optional server ID used for testing slash commands quickly. - testGuildId: process.env.TEST_GUILD_ID, + // Set to null to work on all servers + testGuildId: null, // Command prefix for text-based commands (e.g., "!" for "!ping"). // Supports both slash commands and prefix commands. @@ -91,7 +92,7 @@ export const botConfig = { embeds: { colors: { // Main brand colors. - primary: "#336699", + primary: "#FF0000", secondary: "#2F3136", // Standard status colors for success/error/warning/info messages. @@ -539,4 +540,4 @@ export function getRandomColor() { return colors[Math.floor(Math.random() * colors.length)]; } -export default botConfig; \ No newline at end of file +export default botConfig;