# Dynamic Help Command

Say for example, you do not like the dynamic help command already given (gasp), this is how you would create very simple dynamic help command.

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

```javascript
const Discord = require("discord.js");
module.exports = {
  name: "help",
  aliases: ["pong"],
  execute({ message, hkandler }) {
   let reply = []
   reply.push("Here's a list of all my commands!")
   
   hkandler.commands.forEach((cmd) => {
    reply.push(cmd.name)
   })
   
   let embed = new Discord.MessageEmbed()
    .setColor("RANDOM")
    .setDescription(reply)
   message.channel.send(embed)
   
  },
};
```

{% endcode %}
{% endtab %}

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

```typescript
import { Message, MessageEmbed } from "discord.js"
import HKandler from "hkutilities/dist/structures/hkandler"
export = {
  name: "help",
  execute({ message, hkandler }: {message: Message, hkandler: HKandler}) {
   let reply = []
   reply.push("Here's a list of all my commands!")
   
   hkandler.commands.forEach((cmd: { name: string; }) => {
    reply.push(cmd.name)
   })
   
   let embed = new MessageEmbed()
    .setColor("RANDOM")
    .setDescription(reply)
   message.channel.send(embed)
   
  },
};
```

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