2.0.2-rc.1 β€’ Published 4 years ago

aakiimov-core v2.0.2-rc.1

Weekly downloads
8
License
MIT
Repository
github
Last release
4 years ago

aakiimov-core - powerful and fast core for bots on VK, listen in JavaScript and greatly simplifies the development of bots

πŸ“š DocumentationπŸ“ Examples

Download

yarn add aakiimov-core

Use

const { coreBot, Command } = require(`aakiimov-core`);

const bot = new coreBot({
    token: process.env.token,
    developerId: process.env.developerId,
    aliases: ['Π±ΠΎΡ‚', 'bot'],
    commandsDirectory: './cmds',
    logsDirectory: './logs',
    chatBot: true,
    mongoURI: process.env.mongouri
});

bot.start().catch(bot.logger.error);

Example of the simplest command

const { Command } = require(`aakiimov-core`);

module.exports = new Command({
    trigger: /^\/test$/i,
    name: '/testcmd',
    description: 'check for workable of bot',
    emoji: 'πŸ‘€',
    handler(msg) {
        msg.send(`Working!`);
    }
})
2.0.2-rc.1

4 years ago

2.0.1

4 years ago

1.1.0-rc.1

4 years ago

2.0.0

4 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago