karan / slack-news

Read news from multiple sources within Slack by just typing /news.
http://git.io/news
MIT License
123 stars 15 forks source link

Cannot read property 'toLowerCase' of undefined #3

Open e9t opened 9 years ago

e9t commented 9 years ago

After deploying to Heroku, when I go to https://MY_APP_ID.herokuapp.com/news, I get:

Cannot read property 'toLowerCase' of undefined

And the /news command is not working in the channels. Am I doing something wrong?

nicolsc commented 9 years ago

Hi @e9t

I submitted a PR fixing this error a few mins ago.

But it's nothing to bother about, as Slack sends a ?text= in the query string.
If you try https://YOUR_APP_ID.herokuapp.com/news?text= in your browser, it should be OK already

Regarding Slack integration, it should be OK as long as you set the following in the "slash commands" menu