giphy插件正在Slack通道中使用,nestor bot回复是否有可能通过msg.reply('/ giphy'+ text,done)之类的东西调用giphy搜索;
答案 0 :(得分:1)
我发现他们不被允许here。 我通过使用我的slackbot文件中的superagent npm for ajax和giphy api来解决这个问题:
var url = 'https://api.giphy.com/v1/gifs/search?q=' + 'searchString' + '&api_key=dc6zaTOxFJmzC&rating=r';
request.get(url).end( function(err, res) {
// console.log(res.body.data)
bot.reply(message, 'giphy for you ' + searchString + giph);
});
希望这有帮助