Add stats, feeds, scheduler, and guild backup features to the bot

- Introduced new models in the Prisma schema for statistics, social feeds, scheduled messages, and guild backups, enhancing the bot's functionality.
- Implemented command modules for managing stats channels, feeds, scheduling messages, and creating/restoring backups, improving user engagement and server management.
- Updated job handling to include dedicated workers for stats updates, feed polling, scheduling, and backup restoration, enhancing automation.
- Enhanced command localization for new features in both German and English.
- Documented the new features and their setup processes in PHASE-TRACKING.md for clarity on implementation steps.
This commit is contained in:
smueller
2026-07-22 13:36:39 +02:00
parent 52b10c9536
commit 12066befa8
36 changed files with 4032 additions and 42 deletions

View File

@@ -0,0 +1,32 @@
import { applyCommandDescription, applyOptionDescription } from '@nexumi/shared';
import { SlashCommandBuilder } from 'discord.js';
export const backupCommandData = applyCommandDescription(
new SlashCommandBuilder()
.setName('backup')
.addSubcommand((s) =>
applyCommandDescription(s.setName('create'), 'guildbackup.create.description').addStringOption(
(o) => applyOptionDescription(o.setName('name'), 'guildbackup.create.options.name')
)
)
.addSubcommand((s) => applyCommandDescription(s.setName('list'), 'guildbackup.list.description'))
.addSubcommand((s) =>
applyCommandDescription(s.setName('info'), 'guildbackup.info.description').addStringOption(
(o) =>
applyOptionDescription(o.setName('id').setRequired(true), 'guildbackup.common.options.id')
)
)
.addSubcommand((s) =>
applyCommandDescription(s.setName('delete'), 'guildbackup.delete.description').addStringOption(
(o) =>
applyOptionDescription(o.setName('id').setRequired(true), 'guildbackup.common.options.id')
)
)
.addSubcommand((s) =>
applyCommandDescription(s.setName('restore'), 'guildbackup.restore.description').addStringOption(
(o) =>
applyOptionDescription(o.setName('id').setRequired(true), 'guildbackup.common.options.id')
)
),
'guildbackup.description'
);