0.9.23 • Published 11 months ago

cookiecord v0.9.23

Weekly downloads
1,846
License
LGPL-3.0
Repository
github
Last release
11 months ago

Cookiecord

Cookiecord simplifies discord bot development by providing a modern and easy to use interface.

Just import Cookiecord and Discord.js and make your commands (and listeners):

example/ping.ts

import { Message } from "discord.js";
import { command, default as CookiecordClient, Module } from "cookiecord";

class PingModule extends Module {
    constructor(client: CookiecordClient) {
        super(client);
    }

    @command()
    ping(msg: Message) {
        msg.reply("Pong. :ping_pong:");
    }
}

new CookiecordClient().registerModule(PingModule).login(process.env.TOKEN);

Features

  • Simple: Cookiecord aims to keep the API very simple and easy to use.
  • Inhibitors: Cookiecord includes a powerful inhibitor system with builtin inhibitors to make restricting commands super easy.
  • Powerful Argument System: Cookiecord automatically validates the user's input based on the types of the arguments your function takes in.
  • Super Fast Development: Cookiecord can automatically reload all of your commands and listeners (using CookiecordClient#reloadModulesFromFolder).

Installation

If you would like to help test Cookiecord you can make a new cookiecord project with the generator:

# With Yarn
$ yarn global add cookiecord-generator
# or with NPM
$ npm install -g cookiecord-generator
# And now to make the project:
$ cookiecord-generator generate my-first-bot

Contribute

Pull requests are always welcome but I would like Cookiecord to remain simple so you should probably ask me about it first.

Support

If you are having issues, please let us know. We have a support chat on Discord.

License

The project is licensed under the LGPL-3 license.

0.9.23

11 months ago

0.8.22

2 years ago

0.9.22

2 years ago

0.8.21

2 years ago

0.8.20

2 years ago

0.8.19

2 years ago

0.8.18

3 years ago

0.7.18

3 years ago

0.6.18

3 years ago

0.5.18

3 years ago

0.4.18

3 years ago

0.4.17

4 years ago

0.3.17

4 years ago

0.3.16

4 years ago

0.3.15

4 years ago

0.2.15

4 years ago

0.2.14

4 years ago

0.2.13

4 years ago

0.2.12

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

5 years ago

0.0.0

5 years ago