Skip to content

Commit 3f3cd70

Browse files
committed
Restore .env.example and sanitize error logging
- Re-add .env.example with IAM role note for new contributors - Log error.message instead of full error object to prevent potential credential leakage from downstream libraries
1 parent fe1327b commit 3f3cd70

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ GUILD_ID=your_development_server_id_here
99

1010
# AWS Configuration
1111
# Get these from your AWS account (IAM → Users → Security credentials)
12+
# Or use IAM roles if deploying on AWS infrastructure (preferred)
1213
AWS_ACCESS_KEY_ID=your_aws_access_key_id_here
1314
AWS_SECRET_ACCESS_KEY=your_aws_secret_access_key_here
1415

@@ -21,4 +22,4 @@ AWS_REGION=us-east-1
2122
# - rekognition:DetectFaces
2223
# - rekognition:DetectModerationLabels
2324
# - rekognition:RecognizeCelebrities
24-
# - rekognition:CompareFaces
25+
# - rekognition:CompareFaces

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ client.on(Events.InteractionCreate, async interaction => {
8585
console.log(`📝 Executing command: ${interaction.commandName} by ${interaction.user.tag}`);
8686
await command.execute(interaction);
8787
} catch (error) {
88-
console.error(`❌ Error executing command ${interaction.commandName}:`, error);
88+
console.error(`❌ Error executing command ${interaction.commandName}:`, error.message || error);
8989

9090
const errorResponse = {
9191
content: '⚠️ There was an error while executing this command! Please try again or contact support.',

0 commit comments

Comments
 (0)