- 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.
25 lines
780 B
TypeScript
25 lines
780 B
TypeScript
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'
|
|
);
|