2.11.0 • Published 3 years ago

coxinha v2.11.0

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

Coxinha

Basic command system for discord.js written in typescript

Sample bot in examples/

Example

const { Bot, Command, Argument } = require('coxinha');

// ! is the prefix
const bot = new Bot('!');

bot.on('ready', () => {
    console.log(`Logged in as ${bot.user.tag}!`);
});

bot.addCommand(new Command({
    name: 'ping',
    aliases: ['pong'],
    help: 'Sends "Pong!"',
    async func(ctx) {
        await ctx.send('Pong!');
    }
}));

bot.addCommand(new Command({
    name: 'say',
    help: 'Sends given message',
    args: [
        // Combined means it'll be multiple words
        new Argument('message', {combined: true})
    ],
    async func(ctx, msg) {
        await ctx.send(msg);
    }
}));

bot.login('token');
2.11.0

3 years ago

2.10.0

3 years ago

2.9.2

4 years ago

2.9.3

4 years ago

2.9.1

4 years ago

2.9.0

4 years ago

2.8.0

4 years ago

2.7.2

4 years ago

2.7.1

4 years ago

2.7.0

4 years ago

2.6.1

4 years ago

2.6.0

4 years ago

2.5.0

4 years ago

2.3.0

4 years ago

2.2.1

4 years ago

2.4.0

4 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago