node-vk-bot-api:Node基于Bots Long Poll API和Callback API的Node.js的VK bot框架

时间:2021-01-30 16:12:12
【文件属性】:
文件名称:node-vk-bot-api:Node基于Bots Long Poll API和Callback API的Node.js的VK bot框架
文件大小:49KB
文件格式:ZIP
更新时间:2021-01-30 16:12:12
api bot bots bot-framework vk 节点-vk-bot-api :robot_face: 基于和Node.js的VK机器人框架。 安装 $ npm i node-vk-bot-api -S 用法 const VkBot = require ( 'node-vk-bot-api' ) ; const bot = new VkBot ( process . env . TOKEN ) ; bot . command ( '/start' , ( ctx ) => { ctx . reply ( 'Hello!' ) ; } ) ; bot . startPolling ( ) ; 网络挂钩 const express = require ( 'express' ) ; const bodyParser = require ( 'body-parser' ) ; const VkBot = require ( 'node-vk-bot-api' ) ; const app = express ( ) ; const bot = new VkBot ( { token : process . env . TOKEN
【文件预览】:
node-vk-bot-api-master
----.eslintrc.json(511B)
----lib()
--------utils()
--------session.js(659B)
--------request.js(516B)
--------context.js(847B)
--------markup.js(1KB)
--------stage.js(2KB)
--------errors()
--------scene.js(474B)
--------methods()
--------index.js(1KB)
--------api.js(389B)
----examples()
--------keyboard.js(574B)
--------webhook-koa.js(463B)
--------session.js(361B)
--------error-handling.js(323B)
--------inline-keyboard.js(418B)
--------simple.js(143B)
--------scene.js(803B)
--------webhook-express.js(377B)
----.travis.yml(159B)
----test()
--------webhooks.test.js(3KB)
--------markup.test.js(3KB)
--------config.js(527B)
--------scenes.test.js(6KB)
--------events.test.js(2KB)
--------execute.test.js(1KB)
----LICENSE.md(1KB)
----README.md(10KB)
----.gitignore(40B)
----package-lock.json(92KB)
----package.json(1KB)

网友评论