Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-vk-bot-api

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-vk-bot-api - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

2

lib/context.js

@@ -8,3 +8,3 @@ class Context {

reply(...args) {
this.bot.sendMessage(this.message.peer_id, ...args)
this.bot.sendMessage(this.message.peer_id || this.message.user_id, ...args)
}

@@ -11,0 +11,0 @@ }

module.exports = function (ctx, idx = -1) {
if (this.middlewares.length > idx + 1) {
const { fn, triggers } = this.middlewares[idx + 1]
const message = ctx.message.text.toLowerCase()
const isTriggered = (triggers || []).some(
(trigger) => {
if (ctx.message.type === 'message_new' && trigger !== 'message_new') {
const message = ctx.message.text ? ctx.message.text.toLowerCase() : ''
if (trigger instanceof RegExp) {

@@ -9,0 +10,0 @@ return trigger.test(message)

{
"name": "node-vk-bot-api",
"version": "2.1.1",
"version": "2.1.2",
"description": "🤖 Vk bot framework for Node.js",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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