This package has been deprecated

Author message:

0.x is no longer supported. Stable releases now available at https://npmjs.com/package/chooksie

chookscord
TypeScript icon, indicating that this package has built-in type declarations

0.15.2 • Public • Published

chookscord

The next generation Discord.JS Framework for advanced and rapid development.

npm (scoped) npm

This project is still experimental!

Some features are still under way, and stuff might change at any moment without warning, so consider holding on to deploying to production until v1 is up!

Features

  • First class TypeScript support
  • Support for slash commands and context menus
  • Hot command reloading. Instantly reloads even your TypeScript files
  • Zero boilerplate. No constructing classes, no unnecessary imports
  • Auto registers interactions

Documentation

Visit the guide at https://guide.chooks.app for more info.

Getting started

Initialize your project:

# Install the framework
$ yarn init -y
$ yarn add chookscord

# Create your files
$ mkdir commands
$ touch chooks.config.js commands/hello-world.js

Add the script in your package.json file to run your bot:

{
  "scripts": {
    "dev": "chooks"
  }
}

Setup your config:

// chooks.config.js
module.exports = {
  credentials: {
    token: 'bot-token',
    applicationId: 'application-id',
  },
  devServer: 'dev-server-id',
  intents: [],
};

Create your slash command:

// commands/hello-world.js
module.exports = {
  name: 'hello',
  description: 'My basic slash command!',
  async execute(ctx) {
    await ctx.interaction.reply('Hello, world!');
  },
};

Now run your bot using yarn dev, and congratulations, you now have a working Discord bot!

Learn more in detail at https://guide.chooks.app/installation.html

Sample Projects

You can go to the samples directory inside the repository to see working templates using JavaScript or TypeScript.

Package Sidebar

Install

npm i chookscord

Weekly Downloads

0

Version

0.15.2

License

MIT

Unpacked Size

86.9 kB

Total Files

126

Last publish

Collaborators

  • chooks22