node-vk-bot-api
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "node-vk-bot-api", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "API for VK bots on long poll.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -22,5 +22,3 @@ [![node-vk-bot-api](https://img.shields.io/npm/v/node-vk-bot-api.svg?style=flat-square)](https://www.npmjs.com/package/node-vk-bot-api/) | ||
bot.command('start', ({ reply }) => reply('This is start!')) | ||
bot.hears(/(car|tesla)/, ({ reply }) => reply('I love Tesla!')) | ||
bot.on(({ reply }) => reply('What?')) | ||
@@ -48,5 +46,3 @@ | ||
```javascript | ||
const bot = new API({ | ||
token: process.env.TOKEN | ||
}) | ||
const bot = new API(process.env.TOKEN) | ||
``` | ||
@@ -64,3 +60,5 @@ | ||
```javascript | ||
bot.command('start', ({ reply }) => reply('This is start!')) | ||
bot.command('start', ({ reply }) => { | ||
reply('This is start!') | ||
}) | ||
``` | ||
@@ -78,3 +76,5 @@ | ||
```javascript | ||
bot.hears('car', ({ reply }) => reply('I love Tesla!')) | ||
bot.hears(/(car|tesla)/, ({ reply }) => { | ||
reply('I love Tesla!') | ||
}) | ||
``` | ||
@@ -91,3 +91,5 @@ | ||
```javascript | ||
bot.on(({ reply }) => reply('What?')) | ||
bot.on(({ reply }) => { | ||
reply('What?') | ||
}) | ||
``` | ||
@@ -94,0 +96,0 @@ |
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
123
14294
17