2.0.2-rc.1 β’ Published 4 years ago
aakiimov-core v2.0.2-rc.1
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!`);
}
})