javascript - 试图构建一个松弛的机器人并面临错误“错误:not_allowed_token_type”
问题描述
只是试图通过关注 YouTube 链接来构建一个简单的 slack 机器人并开始收到错误 Error: not_allowed_token_type
const bot = new SlackBot({
token: 'xoxb-TOKEN_GENERATED FROM SLACK SITE',
name: 'escalatorbot' // what name should I give here
})
有人能告诉我为什么我面临这个错误
解决方案
从您的代码片段中,我认为您正在使用 Slackbots.js 并遇到一个已知问题,该问题是由于 slack api 最近的更改而导致的。问题记录在这里:https ://github.com/mishk0/slack-bot-api/issues/145
推荐阅读
- python - 为什么 x = y += 10 在 python 中无效
- javascript - 在选项卡(面包屑)之后删除 VS 代码文件大纲选项
- c++ - 有人可以解释这个程序吗?我不明白
- for-loop - for循环不执行
- python - 如何分解从 pyautogui.locateCenterOnScreen() 返回的 Point(x=,y=) 值
- r - 正则表达式替换第一个数字后的所有内容,包括用另一个字符串的数字
- python - Python DataFrame:根据另一个df的条件更改df中一行的状态?
- javascript - 输入恢复为空时不返回 api
- json - 在powershell中循环并读取json数据元素
- r - 如果行在两个条件下匹配,则按特定顺序减去 Tidyverse