[deploy] add ticket sla, pipeline, automations, kb
All checks were successful
Deploy Discord Bot / deploy (push) Successful in 36s

This commit is contained in:
Pascal Prießnitz
2025-12-03 13:24:25 +01:00
parent ecb348efd0
commit 5bf42f4610
12 changed files with 561 additions and 123 deletions

View File

@@ -12,14 +12,15 @@ const command: SlashCommand = {
.setName('status')
.setDescription('Neuer Status')
.addChoices(
{ name: 'Offen', value: 'open' },
{ name: 'In Bearbeitung', value: 'in-progress' },
{ name: 'Geschlossen', value: 'closed' }
{ name: 'Neu', value: 'neu' },
{ name: 'In Bearbeitung', value: 'in_bearbeitung' },
{ name: 'Warten auf User', value: 'warten_auf_user' },
{ name: 'Erledigt', value: 'erledigt' }
)
.setRequired(true)
),
async execute(interaction: ChatInputCommandInteraction) {
const status = interaction.options.getString('status', true) as 'open' | 'in-progress' | 'closed';
const status = interaction.options.getString('status', true) as any;
const ticket = await prisma.ticket.findFirst({ where: { channelId: interaction.channelId } });
if (!ticket) {
await interaction.reply({ content: 'Kein Ticket in diesem Kanal.', ephemeral: true });