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:
@@ -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');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user