Enhance bot and WebUI functionality with new features and environment updates

- Added support for new environment variables in `.env.example` for public site and legal operator information.
- Integrated core commands into the bot's command structure for improved functionality.
- Implemented a new `publishBotStatus` function to update bot status in Redis, enhancing monitoring capabilities.
- Updated the landing page to include features, invite links, and support server access, improving user experience.
- Enhanced localization with new keys for core commands and landing page elements in both English and German.
- Improved error handling and logging for bot presence updates and status publishing.
This commit is contained in:
smueller
2026-07-22 16:47:09 +02:00
parent 0b4ac0da29
commit 4852f16f79
32 changed files with 1579 additions and 83 deletions

View File

@@ -120,10 +120,11 @@ if (!isShard) {
logger.error({ error }, 'Failed to register application commands');
}
try {
const { applyBotPresence } = await import('./presence.js');
const { applyBotPresence, publishBotStatus } = await import('./presence.js');
await applyBotPresence(context);
await publishBotStatus(context);
} catch (error) {
logger.warn({ error }, 'Failed to apply initial bot presence');
logger.warn({ error }, 'Failed to apply initial bot presence/status');
}
});