- Rename config.json → seed.json to clarify seeding purpose - Update ConfigManager to be database-first with minimal file fallbacks - Store Discord token in database instead of environment variables - Remove allowedSfxChannels functionality completely - Update seeding script to import token from seed.json to database - Add token field to bot_config table in database schema - Update Docker volume mount to use seed.json - Update gitignore to protect seed.json while allowing seed.example.json Configuration Flow: 1. First run: Import from seed.json to database (one-time seeding) 2. Runtime: All configuration from SQLite database 3. Fallback: Environment variables if database unavailable Security: All sensitive data now stored in encrypted SQLite database 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
48 lines
1.6 KiB
JSON
48 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,
|
|
"sfxVolume": 0.5,
|
|
"passes": 2,
|
|
"allowedRolesForRequest": ["DISCORD ROLE ID"],
|
|
"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,
|
|
"sfxVolume": 0.5,
|
|
"passes": 2,
|
|
"enableFunFacts": true,
|
|
"enableHamFacts": true
|
|
}
|
|
],
|
|
"activities": ["Chardee MacDennis", "The Nightman Cometh", "Charlie Work"],
|
|
"blacklistedUsers": ["IGNORE COMMANDS FROM THESE DISCORD USER IDS"]
|
|
},
|
|
"debug": false
|
|
}
|