Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 24 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
bot
===
# bot

bot is our friendly robot that sits on sdslabs chat and helps us in lots of things.
It is powered by Hubot (by GitHub), and uses some custom scripts as well.
bot is our friendly robot that sits on SDSLabs Slack and helps us in lots of things.
It is powered by Hubot (by GitHub), and have been personalized for our use case.

This is hosted on the heroku free tier, and we use jsonblob.com as the brain storage
service.
This is hosted on the Heroku Free tier, and we use https://github.com/sdslabs/botdb as the brain storage
service. This can be changed to use https://jsonblob.com too (`botdb` and JSON Blob use the same API endpoints).

Set-up Instructions
===================
## Set-up Instructions

After cloning repository, run the following command in the terminal:
1. Setup [botdb](https://github.com/sdslabs/botdb) using the setup instructions.

JSONBLOB_URL="{JSONBLOB_URL}" INFO_SPREADSHEET_URL="{INFO_SPREADSHEET_URL}" bin/hubot
2. Clone this repository at your desired location

The config variables can be found from the heroku account.
```bash
git clone https://github.com/sdslabs/bot
cd bot
```

3. Prepare a Google Sheet using this template and enable link sharing

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which template?


4. Setup environment variables

```bash
export JSONBLOB_URL="http://localhost:5050/"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we also need a HUBOT_SLACK_TOKEN?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to this

export JSONBLOB_TOKEN="token_set_in_botdb"
export INFO_SPREADSHEET_URL="csv_export_url_of_link"
```

5. Run the bot for testing using `./bin/hubot`