Socket
Socket
Sign inDemoInstall

botbuilder-vk

Package Overview
Dependencies
103
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    botbuilder-vk

botbuilder-vk


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

botbuilder-vk

Модуль для работы с ВКонтакте в Bot Builder.

Установка

npm install botbuilder-vk

Подключение


var restify = require('restify'),
    builder = require('botbuilder'),
    vk = require('test-connector')({
        access_token: "access_token группы",
        callback_key: "Строка, которую должен вернуть сервер",
        group_id: "id группы"
    }),
    server = restify.createServer(),
    connector = new builder.ChatConnector({
        appId: "botframework-app-id",
        appPassword: "botframework-app-pass"
    }),
    ubot = new builder.UniversalBot(connector);


server.listen(80, console.log.bind(console, '%s listening to %s', server.name, server.url));

ubot.connector(vk.channelId, vk);
server.post('/vk',  vk.listen());

server.post('/ubot',  connector.listen());

ubot.dialog('/', function (session) {
    session.send("Привет, твой id: " + session.message.user.id);
});

Warn

vk.channelId - sms, а не vk callback api нужно настриивать самим

FAQs

Last updated on 17 Apr 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc