【文件属性】:
文件名称:slack-bot:使用AWS API Gateway和AWS Lambda的Slack Bot
文件大小:64KB
文件格式:ZIP
更新时间:2021-02-02 00:03:00
slack bot lambda aws-lambda slack-bot
松弛机器人
有关使用AWS Lambda和AWS API Gateway创建Node.js Slack bot的教程。
建立状态
建立
我为AWS Lambda选择亚太地区(新加坡),为AWS API Gateway选择亚太地区(新加坡)。
结帐代码
$ git clone https://github.com/lesterchan/slack-bot.git
$ cd slack-bot
$ npm install --production
$ zip -r slack-bot.zip *.js node_modules/*
AWS Lambda
转到 。
单击“立即开始”。
在“选择蓝图”屏幕下,搜索“ hello-world”,您将看到显示“ AWS Lambda入门功能的hello-world蓝图”。
单击“ hello-world”(而不是“ hello-world-python”)。
您将被带到“配置功能”页面。
在“名称”下,您可以为函数选择任何名称。 我称它为“松弛机器人”。
在“运行时”下,确保它是“ Node.js”。
在“代码输入类型”
【文件预览】:
slack-bot-master
----.gitignore(86B)
----package.json(971B)
----package-lock.json(208KB)
----commands.js(10KB)
----index.js(1KB)
----.github()
--------workflows()
----README.md(6KB)
----config.js(273B)
----helper.js(2KB)
----test()
--------test.js(5KB)
----.editorconfig(217B)