neelabhg / groupme-bot

A bot for the GroupMe messaging service (https://dev.groupme.com/tutorials/bots)
MIT License
11 stars 32 forks source link

Could not find path: / #5

Closed dvmorris closed 8 years ago

dvmorris commented 8 years ago

I'm trying to run this chat bot locally, and I get this error when I make a POST request:

Could not find path: /

dvmorris commented 8 years ago

Nevermind, I see now that you have to type "/groupme" in the URL for messages to post correctly. It would be helpful if the instructions were updated to include sample HTTP requests to test the chat bot locally, like this:

POST /groupme HTTP/1.1
Host: localhost:5000
Content-Type: application/json
Cache-Control: no-cache

{
  "attachments": [],
  "avatar_url": "http://i.groupme.com/12345",
  "created_at": 1302623328,
  "group_id": "1234567890",
  "id": "1234567890",
  "name": "Name",
  "sender_id": "123456789",
  "sender_type": "user",
  "source_guid": "123asdf2344kjjk",
  "system": false,
  "text": "chatbot weather city",
  "user_id": "123456789"
}