Socket
Socket
Sign inDemoInstall

spotted

Package Overview
Dependencies
12
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    spotted

Library for creating Vkontakte bots with ease.


Version published
Weekly downloads
13
increased by116.67%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

spotty

Сервер для ВКонтакте Callback API.

Установка

npm i spotted

Использование

Примеры использования находятся в папке examples.

API

ctx.call(method: String, params: Object)

Вызывает методы API ВКонтакте.
L21, APIClient.js

ctx.reply(text: String, attachments: String/Array, forwards: String/Array)

Позволяет быстро отвечать на входящие сообщения.
L50, APIClient.js

ctx.upload(type: String, file: Buffer/Stream, params: Object)

Позволяет загружать изображения / документы во ВКонтакте от имени сообщества.
L84, APIClient.js

spotty.addCommunity(community: Object)

Добавляет сообщество в список обрабатываемых.
Объект community должен содержать четыре обязательных свойства.

PropertyTypeRequried
accessTokenStringyes
confirmationCodeStringyes
idNumberyes
secretKeyStringyes

L43, Application.js

spotty.run(args: Object)

Запускает прослушивание входящих POST-запросов от ВКонтакте.
Объект args может содержать перечисленные ниже свойства.

PropertyTypeRequriedDefault
portNumberno8080

L58, Application.js

Keywords

FAQs

Last updated on 17 Oct 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