Skip to content

harmonix-js/core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

318dce3 Β· May 12, 2024

History

43 Commits
May 10, 2024
May 9, 2024
May 12, 2024
May 12, 2024
May 9, 2024
May 11, 2024
May 9, 2024
May 12, 2024
May 6, 2024
May 12, 2024
May 12, 2024
May 6, 2024
May 7, 2024
May 7, 2024

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/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 πŸ–€