박찬수

mod

Showing 1 changed file with 3 additions and 4 deletions
...@@ -77,8 +77,7 @@ try { ...@@ -77,8 +77,7 @@ try {
77 77
78 function Reply(eventObj,replyMsg){ 78 function Reply(eventObj,replyMsg){
79 79
80 - replyMsg = JSON.parse(replyMsg); 80 + let replyMsgJSON = JSON.parse(replyMsg);
81 - console.log(replyMsg.name);
82 81
83 request.post( 82 request.post(
84 { 83 {
...@@ -91,11 +90,11 @@ function Reply(eventObj,replyMsg){ ...@@ -91,11 +90,11 @@ function Reply(eventObj,replyMsg){
91 "messages":[ 90 "messages":[
92 { 91 {
93 "type":"Name", 92 "type":"Name",
94 - "text":replyMsg.response[0].player.name 93 + "text":replyMsgJSON.response[0].player.name
95 }, 94 },
96 { 95 {
97 "type":"JSON", 96 "type":"JSON",
98 - "text":replyMsg 97 + "text":replyMsgJSON
99 } 98 }
100 ] 99 ]
101 } 100 }
......