diff options
| author | Mathias Magnusson <mathias@magnusson.space> | 2026-01-21 16:25:43 +0100 |
|---|---|---|
| committer | Mathias Magnusson <mathias@magnusson.space> | 2026-01-21 16:29:00 +0100 |
| commit | 1539287cd123a604de23bc31a4abb0fdfce2a093 (patch) | |
| tree | 97577b2c5db1d2e66a956ad3f84d0d2d95f37a8b /index.ts | |
| parent | 0f28dfc85127badd5333bf99060a905835aac224 (diff) | |
| download | challe-anka-1539287cd123a604de23bc31a4abb0fdfce2a093.tar.gz | |
create Dockerfile & compose.yaml
Diffstat (limited to 'index.ts')
| -rw-r--r-- | index.ts | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -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); |
