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 1.1.1 to 1.1.2

2

package.json
{
"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 @@

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