Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

These issues might occur as soon as you have followed the steps mentioned in "Setting up specific bots" page and try to run your bot for the first time:

Panel
bgColor#000000
titleColor#ea4310
titleRunning yo hubot yields -> SyntaxError: Unexpected token ...

Upgrade your node and npm (Recommended: Node 8.x.x and npm5.x.x) and retry.

Reference: Click here


Panel
bgColor#000000
titleColor#ea4310
titlenode/nodejs not found

Create a symbolic link between node and nodejs to fix any naming conflicts:

sudo ln -s /usr/bin/nodejs /usr/bin/node


Panel
bgColor#000000
titleColor#ea4310
titleTypeError: Parameter 'url' must be a string, not undefined

You need to set the MONGO_DB_URL as an environment variable.

export MONGO_DB_URL=mongodb://<mongodb_host_ip>:<port>

After setting try restarting the bot with ./bin/hubot or ./bin/hubot -a <adapter> command.


Panel
bgColor#000000
titleColor#ea4310
titleHelp command gives large/redundant outputs

Navigate to the myhubot/external-scripts.json file and remove hubot-help from the array. Thereafter, restart the bot.


Panel
bgColor#000000
titleColor#ea4310
titleReload command is not responding

Navigate to myhubot/hubot-scripts.json file and add "reload-scripts.coffee" as an element in the array. Thereafter, restart the bot.