Simple VK chat bot based on node-vk-bot-api.
Rename example_config.json
to config.json
and paste your configuration data in there
npm install
npm install -g pm2
pm2 start index.js --name bot
pm2 save
pm2 startup
-
Log in vk with your bot
-
Change [app_id] on your application id in link and open -
- Create new
.js
file incommands
directory and export function from that file which receives ctx value(more about commands) - Copy-paste
botCommand(command, filename)
orbotHears(command, filename)
invkbot.js
file. Example:botCommand('!help', 'help')