summaryrefslogtreecommitdiff
path: root/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts15
1 files changed, 5 insertions, 10 deletions
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);