fendersperth / fendersbot

A group project for learning and teaching via a real code base
9 stars 3 forks source link

Use dotenv instead of config.json #9

Closed luke-john closed 8 years ago

luke-john commented 8 years ago

So

let apiToken = process.env.SLACK_BOT_USER_API_TOKEN || config.slackBotUserApiToken;

would become

let apiToken = process.env.SLACK_BOT_USER_API_TOKEN;

https://github.com/fendersperth/fendersbot/blob/0081a8d0fc7769e133ba33715a7c4b6e6016c936/lib/slack.js#L8

kevincharm commented 8 years ago

Sounds more standard :P Wanna do a PR for this?