spotted
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -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": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
24600
13
652
1
4