Dozer:Saints Robotics Slack 的(更好的)机器人

时间:2021-06-20 07:17:45
【文件属性】:
文件名称:Dozer:Saints Robotics Slack 的(更好的)机器人
文件大小:10KB
文件格式:ZIP
更新时间:2021-06-20 07:17:45
JavaScript s4 s4 是 StudentRND 的 Slack 机器人。 你也可以使用它! 配置 仅当您想在自己的 SLACK 上使用 s4 时才需要执行此步骤 将config.default.js复制并粘贴到config.js 。 相应地设置您的 Slack 密钥和挂钩密码(挂钩密码用于 Web 界面)。 处理消息发送 唯一的非 s4 特定文件是bot.js 。 该文件包含一个Bot类,您可以将其用于 Slack 以外的其他内容,只需确保设置sendMessage回调即可。 下面是一个例子: bot . on ( 'sendMessage' , function ( message , channel ) { // The bot includes multi-channel support. // You don't have to use it if you really wan
【文件预览】:
Dozer-master
----.gitignore(25B)
----README.md(2KB)
----Procfile(14B)
----commands.js(3KB)
----config.default.js(56B)
----app.js(2KB)
----bot.js(2KB)
----package.json(194B)
----index.html(525B)
----lib()
--------countdown.js(7KB)
----cleverbot.js(3KB)

网友评论