As per the hubot documentation callbacks registered with robot.respond are only triggered when the command name is preceded by the robot name or alias, so setting robot.alias to '/' makes robot.respond react to slash commands.
This doesn't work in group chats because the leading slash is removed by the adapter before the message is forwarded to the robot.
As per the hubot documentation callbacks registered with robot.respond are only triggered when the command name is preceded by the robot name or alias, so setting robot.alias to '/' makes robot.respond react to slash commands. This doesn't work in group chats because the leading slash is removed by the adapter before the message is forwarded to the robot.