New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bot_api

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bot_api

Lib for VK Bot API

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

VK-API-for-Bot

Библиотека для удобной работы с VK API для ботов. Все запросы к VK API складываются в "пакеты" по 25 запросов и отправляются через vk.com/dev/execute Это позволяет не упираться в лимит три запроса в секунду.

Установка

npm install test

Простой пример

GROUP TOKEN = Это ваш ключ доступа для сообщества.

const VK = require('./VK.js')('GROUP TOKEN');
VK.onNewMessage((message) => {
    switch(message.body) {
        case 'привет':
            message.reply('Ку');
            break;
        default:
            message.reply(message.body, (message_id) => {
                console.log(message_id);
            });
            break;
    }
});```

FAQs

Package last updated on 11 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc