node-vk-bot-api
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -108,6 +108,6 @@ const rp = require('request-promise') | ||
ctx.reply = (message, attachment) => this.reply(ctx.user_id, message, attachment) | ||
ctx.sendMessage = (userId, message, attachment) => this.reply(ctx.user_id, message, attachment) | ||
ctx.sendMessage = (userId, message, attachment) => this.reply(userId, message, attachment) | ||
const message = ctx.body.toLowerCase() | ||
const commandKey = Object.keys(commands).filter(item => item.search(message) > -1)[0] | ||
const commandKey = Object.keys(commands).filter(item => item.indexOf(message) > -1)[0] | ||
const commandCallback = commands[commandKey] | ||
@@ -114,0 +114,0 @@ const hearsKey = Object.keys(hears).filter((item) => { |
{ | ||
"name": "node-vk-bot-api", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "API for VK bots on long poll.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14290