【文件属性】:
文件名称:cabal-bot-core:为阴谋创建机器人!
文件大小:45KB
文件格式:ZIP
更新时间:2021-04-30 07:15:41
bots cabal JavaScript
Cabal Bot核心
Cabal机器人的基本功能( )。 有关更高级的命令解析,请参见 。
入门
正在安装
npm install cabal-bot-core
例子
var CabalBot = require ( 'cabal-bot' )
const cb = new CabalBot ( 'test-bot' )
cb . on ( 'new-command' , ( envelope , cabal ) => {
console . log ( 'command entered!' )
} )
cb . on ( 'new-message' , ( envelope , cabal ) => {
cabal . publishMessage ( {
type : 'chat/text' ,
content : {
text : envel
【文件预览】:
cabal-bot-core-master
----src()
--------cabal-bot.js(3KB)
----test()
--------test.js(5KB)
----LICENSE.md(34KB)
----README.md(666B)
----.gitignore(1KB)
----index.js(47B)
----package-lock.json(107KB)
----package.json(335B)