0
我试图用松弛API https://api.slack.com/methods/channels.join但得到这种反应松弛机器人错误:“user_is_bot”的channels.join
info: ** API CALL: https://slack.com/api/channels.join
Response : { ok: false, error: 'user_is_bot' }
创建一个新的渠道我想这
controller.hears('hello', ['direct_message', 'direct_mention', 'mention'], function (bot, message) {
bot.api.channels.join({'name':'nag'}, function (err, response) {
console.log("Response : ",response);
})
});
如果我错误请让我知道。我已经开始学习松散的API了。