Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 1014 Bytes

README.md

File metadata and controls

49 lines (29 loc) · 1014 Bytes

Docbot

Slack bot helps you to create documents. Document will be posted to your Qiita:Team.

Setup

$ git clone https://github.com/rivayama/docbot.git
$ cd docbot
$ npm install

Then you'll need to set following environment variables.

$ export SLACK_API_TOKEN=your_slack_api_token_here
$ export QIITA_TEAM_ID=your_qiita_team_id_here
$ export QIITA_ACCESS_TOKEN=your_qiita_access_token_here

Run bot

$ npm start

Usage

Templates

You can create and confirm templates by following commands:

@docbot: create template _template name_
@docbot: list templates
@docbot: show template _template name_

Documents

You can create and confirm documents by following commands:

@docbot: create document _template name_
@docbot: list documents
@docbot: show document _document name_

For more info, see help.

@docbot: help

Enjoy!