hubot-slack-imakitasangyo
v1.1.0
Published
A imakitasangyo script for hubot-slack
Downloads
2
Readme
hubot-slack-imakitasangyo
A imakitasangyo alert script for hubot-slack
Description
Summerize recent posts in the channel when someone posts "今北産業" on Slack.
Requirements
- recruit-tech/summpy https://github.com/recruit-tech/summpy
You need to host this API by yourself.
Installation
- Go to your hubot-slack directory and run
npm install hubot-slack-imakitasangyo --save
to add hubot-slack-imakitasangyo
to package.json
of your hubot-slack
- Add
hubot-slack-imakitasangyo
toexternal-scripts.json
of your hubot-slack
$ cat external-scripts.json
[
... ,
"hubot-slack-imakitasangyo",
...
]
Required parameters
Envs
export HUBOT_SLACK_TOKEN=[SLACK TOKEN. ex: "xoxp-hogehogehogehoge"]
export HUBOT_IMAKITASANGYO_BOT_USER_ID=[Bot's user ID. ex: "U021A3SA3"]
export HUBOT_IMAKITASANGYO_SUMMPY_API_URL=[Summpy API URL. ex: "http://127.0.0.1:9000/summarize"]
export HUBOT_IMAKITASANGYO_SOURCE_LINES=[Number of lines to be summerized. ex: "30"]
Special thanks
This script uses Recruit Tech's API.