From 1539287cd123a604de23bc31a4abb0fdfce2a093 Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Wed, 21 Jan 2026 16:25:43 +0100 Subject: create Dockerfile & compose.yaml --- index.ts | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'index.ts') diff --git a/index.ts b/index.ts index fc65e3f..afb43f8 100644 --- a/index.ts +++ b/index.ts @@ -107,15 +107,10 @@ client.on(Events.ThreadCreate, async (thread) => { } }); -try { - await rest.put(Routes.applicationCommands(clientId), { - body: slashCommands.map(command => command.slashCommand.toJSON()), - }); +await rest.put(Routes.applicationCommands(clientId), { + body: slashCommands.map(command => command.slashCommand.toJSON()), +}); - await client.login(token); +await client.login(token); - client.user?.setActivity(activity); -} catch (error) { - console.error("Discord bot failed to start", error); - process.exit(1); -} +client.user?.setActivity(activity); -- cgit v1.2.3