@@ -1,6 +1,6 @@ |
||
1 | 1 |
{ |
2 | 2 |
"name": "hubot-multi-adapter", |
3 |
- "version": "0.3.5", |
|
3 |
+ "version": "0.3.6", |
|
4 | 4 |
"description": "A Hubot adapter that can receive messages thru socket.io or telegram", |
5 | 5 |
"main": "src/multi-adapter", |
6 | 6 |
"scripts": { |
@@ -104,11 +104,11 @@ class MultiAdapter extends Adapter |
||
104 | 104 |
user.room = chat_id |
105 | 105 |
user.msg_type = req.body.user.msg_type |
106 | 106 |
@receive new TextMessage user, text |
107 |
- res.status(400).send({"message" : "received"}) |
|
107 |
+ res.status(200).send({"message" : "received"}) |
|
108 | 108 |
else |
109 | 109 |
res.status(400).send({"message" : "The user object has mising properties. Follow instruction on https://github.com/jamesperet/hubot-multi-adaptor"}) |
110 | 110 |
else |
111 |
- res.status(200).send({"message" : "Please check the body of your request. Follow instruction on https://github.com/jamesperet/hubot-multi-adaptor"}) |
|
111 |
+ res.status(400).send({"message" : "Please check the body of your request. Follow instruction on https://github.com/jamesperet/hubot-multi-adaptor"}) |
|
112 | 112 |
|
113 | 113 |
@emit 'connected' |
114 | 114 |
|