Open-source framework to make Discord bots.
This will set up a starter project with all the required files and dependencies:
npx @harmonix-js/cli init <my-bot>
Harmonix offers a straightforward, user-friendly, and robust solution for writing commands naturally. It automates all repetitive tasks, allowing you to concentrate on developing your bot features with assurance.
Example of a commands/ping.ts
:
import { defineCommand } from '@harmonix-js/core'
export default defineCommand(
{
description: 'Ping command'
},
(client, interaction) => {
interaction.reply('Pong!')
}
)
Check out the Harmonix documentation to enhance your skills. It's an excellent resource for deepening your understanding of the framework, covering a large bunch of topics.
We welcome your support to enhance Harmonix. To do that you can report bugs or give us feedback and ideas.
Published under the MIT license.