Skip to content

harmonix-js/core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b2582b3 Β· May 17, 2024

History

96 Commits
May 16, 2024
May 9, 2024
May 17, 2024
May 17, 2024
May 9, 2024
May 17, 2024
May 9, 2024
May 17, 2024
May 6, 2024
May 17, 2024
May 16, 2024
May 6, 2024
May 14, 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/utils/ping.ts

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

export default defineCommand(
  {
    description: 'Ping command'
  },
  (client, interaction) => {
    interaction.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 πŸ–€