Major upgrades and architectural improvements: - Upgrade Discord.js from v12 to v14.21.0 - Upgrade Node.js from 14 to 22 LTS - Switch to pnpm package manager - Complete rewrite with modern Discord API patterns New Features: - Hybrid command system: prefix commands + slash commands - /sfx slash command with autocomplete for sound discovery - Modern @discordjs/voice integration for audio - Improved voice connection management - Enhanced logging for SFX commands - Multi-stage Docker build for optimized images Technical Improvements: - Modular architecture with services and command handlers - Proper intent management for Discord gateway - Better error handling and logging - Hot-reload capability maintained - Environment variable support - Optimized Docker container with Alpine Linux Breaking Changes: - Moved main entry from index.js to src/index.js - Updated configuration structure for v14 compatibility - Replaced deprecated voice APIs with @discordjs/voice - Updated audio dependencies (opus, ffmpeg) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
50 lines
1.6 KiB
JSON
50 lines
1.6 KiB
JSON
{
|
|
"botName": "greenhambot",
|
|
"discord": {
|
|
"clientId": "YOUR DISCORD APP ID",
|
|
"token": "YOUR DISCORD APP TOKEN",
|
|
"adminUserId": "YOUR DISCORD USER ID",
|
|
"guilds": [
|
|
{
|
|
"internalName": "GUILD NAME",
|
|
"id": "GUILD ID",
|
|
"prefix": "!",
|
|
"enableSfx": true,
|
|
"allowedSfxChannels": "piped|list|of-valid-channels",
|
|
"sfxVolume": 0.5,
|
|
"passes": 2,
|
|
"enableFunFacts": true,
|
|
"enableHamFacts": true,
|
|
"scheduledEvents": [
|
|
{
|
|
"id": "rise-up-and-kick-a-little-ass",
|
|
"schedule": {
|
|
"hour": 7,
|
|
"minute": 30,
|
|
"tz": "America/Los_Angeles"
|
|
},
|
|
"channelId": "DISCORD CHANNEL ID",
|
|
"pingRoleId": "DISCORD ROLE ID",
|
|
"message": "I'm gonna rise up, I'm gonna kick a little ass, Gonna kick some ass in the USA, Gonna climb a mountain, Gonna sew a flag, Gonna fly on an Eagle, I'm gonna kick some butt, I'm gonna drive a big truck, I'm gonna rule this world, Gonna kick some ass, Gonna rise up, Kick a little ass"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"internalName": "SECOND GUILD NAME",
|
|
"id": "SECOND GUILD ID",
|
|
"prefix": "!",
|
|
"enableSfx": true,
|
|
"allowedSfxChannels": "piped|list|of-valid-channels",
|
|
"sfxVolume": 0.5,
|
|
"passes": 2,
|
|
"enableFunFacts": true,
|
|
"enableHamFacts": true
|
|
}
|
|
],
|
|
"activities": [
|
|
"that gum you like"
|
|
],
|
|
"blacklistedUsers": ["IGNORE COMMANDS FROM THESE DISCORD USER IDS"]
|
|
},
|
|
"debug": false
|
|
} |