# Setup

This is how you would setup hkutilities using JavaScript and TypeScript

{% tabs %}
{% tab title="JavaScript" %}
{% code title="index.js" %}

```javascript
const { Client } = require("discord.js");
const { HKandler } = require("hkutilities");
const bot = new Client();

new HKandler(bot, {
  commandsDir: "commands",
  eventsDir: "events",
  featuresDir: "features",
})
  .setPrefix("!") //set a prefix - ! is default
  .setOwners(["12345"]) // array of bot owners
  .setDefaultCooldown(5) //set default command cooldown
  .setHelpDescription("This is the help menu. Use {PREFIX}help for more help") //set the description of the help embed, type ${PREFIX} to get prefix
  .setMentionPrefix(true); //mention the bot instead of using the prefix Note: Prefix and Mentioning bot will work

bot.login("token");
```

{% endcode %}
{% endtab %}

{% tab title="TypeScript" %}
{% code title="index.ts" %}

```typescript
import { Client } from "discord.js";
import { HKandler } from "hkutilities";
const bot = new Client();

new HKandler(bot, {
  commandsDir: "commands",
  eventsDir: "events",
  featuresDir: "features",
})
  .setPrefix("!") //set a prefix - ! is default
  .setOwners(["12345"]) // array of bot owners
  .setDefaultCooldown(5) //set default command cooldown
  .setHelpDescription("This is the help menu. Use {PREFIX}help for more help") //set the description of the help embed, type ${PREFIX} to get prefix
  .setMentionPrefix(true); //mention the bot instead of using the prefix Note: Prefix and Mentioning bot will work

bot.login("token");
```

{% endcode %}
{% endtab %}
{% endtabs %}
