node-vk-bot-api
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "node-vk-bot-api", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "🤖 Vk bot framework for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -175,4 +175,6 @@ [![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/) | ||
Store anything for current user in local memory. | ||
Store anything for current user in local (or [redis](https://github.com/node-vk-bot-api/node-vk-bot-api-session-redis)) memory. | ||
### Usage | ||
```javascript | ||
@@ -200,4 +202,19 @@ const VkBot = require('node-vk-bot-api') | ||
### API | ||
#### Options | ||
* `key`: Context property name (default: `session`) | ||
* `getSessionKey`: Getter for session key | ||
##### Default `getSessionKey(ctx)` | ||
```js | ||
const getSessionKey = (ctx) => { | ||
return `${ctx.message.from_id}:${ctx.message.from_id}` | ||
} | ||
```` | ||
## License | ||
MIT. |
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
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
14910
219
0