gSearch: function(message){
googleSearch.build({
q: message
},
function(error, response)
{
console.log(response);
chain.send('/me ' + response);
});
},
返回[Object對象]作爲結果Node.js的NPM谷歌搜索結果返回[Object對象]作爲結果
這不是HTML,它是一個機器人意味着一個IRC聊天類型。您發送一個請求,如!g「搜索詞」,然後它應該將搜索結果發送回聊天。與製造node.js的
你已經明確提出會發生什麼,而不是你的問題或問題。 – ssube
我如何得到它返回一個搜索結果,而不是[Object對象]它說我的搜索詞是[對象] – DiminishedHail
我很抱歉,新的這個。 – DiminishedHail