Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 777 Bytes

README.md

File metadata and controls

47 lines (33 loc) · 777 Bytes

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/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 🖤