Skip to content

harmonix-js/harmonix

Repository files navigation

Harmonix

Create Discord Bot with ease and simplicity.

Examples

Installation

npx @harmonix-js/cli init bot-name
# pnpm dlx @harmonix-js/cli init bot-name
# yarn dlx @harmonix-js/cli init bot-name

Command

commands/utils/ping.ts

import { defineCommand } from '@harmonix-js/core'

export default defineCommand(
  {
    description: 'Ping command'
  },
  (client, message) => {
    message.reply('Pong!')
  }
)

Event

events/ready.ts

import { defineEvent } from '@harmonix-js/core'

export default defineEvent<'ready'>((client) => {
  console.log('Bot is ready!')
})

License

Published under the MIT license. Made by @nethriis 🖤

About

🤖 The DX-first framework for Discord bots.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Contributors 3

  •  
  •  
  •