0.15.2 • Published 3 years ago

chookscord v0.15.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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.

0.15.0

3 years ago

0.15.1

3 years ago

0.14.2

3 years ago

0.15.2

3 years ago

0.14.0

3 years ago

0.14.1

3 years ago

0.12.0

3 years ago

0.13.0

3 years ago

0.12.1

3 years ago

0.12.2

3 years ago

0.11.0

3 years ago

0.10.0

3 years ago

0.10.1

3 years ago

0.9.0

3 years ago

0.9.1

3 years ago

0.5.0

3 years ago

0.5.1

3 years ago

0.3.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago