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

Comparing version 1.1.1 to 1.2.0

src/Application.js

9

examples/echo.js

@@ -5,15 +5,14 @@ 'use strict';

spotty.addCommunity({
spotty.setCommunity({
accessToken: 'aswewoqpfsqwepofdsf', // <String> VK Community Access Token
confirmationCode: 'asdjfdg', // <String> VK Community Confirmation Code
id: 12345678, // <Number> VK Community ID
secretKey: 'secretAJSDIFfsd' // <String> VK Community Secret Key
});
spotty.on('message_new', ctx => {
console.log(`[Group id${ctx.group_id}] A new message from user id${ctx.object.user_id} received:`, ctx.object.body);
spotty.on('message_new', message => {
console.log(`A new message from user id${message.user_id} received:`, message.body);
ctx.reply('Re: ' + ctx.object.body);
ctx.reply('Re: ' + message.body);
});
spotty.run();
{
"name": "spotted",
"version": "1.1.1",
"description": "",
"main": "./main.js",
"version": "1.2.0",
"description": "Library for creating Vkontakte bots with ease.",
"main": "./src/main.js",
"author": "olnaz",

@@ -7,0 +7,0 @@ "repository": {

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