Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
finochat-botkit
Advanced tools
简单直接好用的机器人框架
# 依赖安装
cnpm install
# 开发 typescript 期间的编译 (可以将ts装到全局 cnpm install typescript -g )
./node_modules/typescript/bin/tsc
# 在 Jetbrains系的IDE下,进入菜单(Preferences | Languages & Frameworks | TypeScript)
# 勾选 `Enable Typescript Compiler` 和 `Track changes` 开启自动编译(file watcher)
工程作为 npm module 发布在 finogeeks 的私有 npm-registry 上面
npm install awesome-botkit@latest --registry=https://npm.finogeeks.club/
describe()
方法体里直接通过 DSL 描述状态机的状态转移图when()
函数的返回值,返回 nextStategoto(CurrentState)
的另一种形式,停留在本状态goto(Done)
的另一种形式,结束会话状态机describe()
的方法体内可以使用如下两种方式共享变量(session scope)
using()
. 这里建议通过 spread-rest
语法构造 immutable object 对象。后续会方便利用到状态跟踪,重演,TimeTravel Debugging 等很多玩法。在回调函数内,可以不借助 matcher API,通过判断 content 或者 data 的具体细节来控制分支走向, 获得最大的灵活度:
when(MyStates.IDLE)(async (sender, content, data) => {
if(content.body === "step1") {
return goto(MyStates.STEP1).withConvoMsg({body: "I goto step1!"});
} else if (content.body === "开始业务2") {
return goto(MyStates.STEP2)
}
return stay().withConvoMsg({body: "Stay!"});
});
FAQs
finochat bot framework
The npm package finochat-botkit receives a total of 1 weekly downloads. As such, finochat-botkit popularity was classified as not popular.
We found that finochat-botkit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.