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:
24
apps/bot/src/modules/core/command-definitions.ts
Normal file
24
apps/bot/src/modules/core/command-definitions.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { SlashCommandBuilder } from 'discord.js';
|
||||
import { applyCommandDescription, applyOptionDescription } from '@nexumi/shared';
|
||||
|
||||
export const helpCommandData = applyCommandDescription(
|
||||
new SlashCommandBuilder().setName('help'),
|
||||
'core.help.description'
|
||||
).addStringOption((option) =>
|
||||
applyOptionDescription(option.setName('module'), 'core.help.options.module')
|
||||
);
|
||||
|
||||
export const infoCommandData = applyCommandDescription(
|
||||
new SlashCommandBuilder().setName('info'),
|
||||
'core.info.description'
|
||||
);
|
||||
|
||||
export const inviteCommandData = applyCommandDescription(
|
||||
new SlashCommandBuilder().setName('invite'),
|
||||
'core.invite.description'
|
||||
);
|
||||
|
||||
export const supportCommandData = applyCommandDescription(
|
||||
new SlashCommandBuilder().setName('support'),
|
||||
'core.support.description'
|
||||
);
|
||||
Reference in New Issue
Block a user