Skip to content
Closed

Sup #132

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions src/config/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -92,7 +94,7 @@ const appConfig = {
voice: true,
search: true,
tools: true,
utility: true,
utility: true,
community: true,
fun: true,

Expand All @@ -106,4 +108,4 @@ const appConfig = {

Object.freeze(appConfig);

export default appConfig;
export default appConfig;
13 changes: 7 additions & 6 deletions src/config/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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,
},
],
},
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -539,4 +540,4 @@ export function getRandomColor() {
return colors[Math.floor(Math.random() * colors.length)];
}

export default botConfig;
export default botConfig;