bBot not responding to multiple direct calls

Hey everyone!
I hope I’m in the right category here to ask this question. If not, feel free to tell me to move my thread.

I’m currently testing out bbot. Installed it and a server locally. I followed this ( ) to set it up.
I’m having an issue when trying to chat with the bot. I’m trying to have multiple something) in my index.js, but whenever I try to access any of them, only the first one mentioned in the code works. I tried force: true as an option, but it didn’t seem to work. My guess would be that the bot jumps into the first one, because it is called with his name, checks the condition, realizes he shouldn’t answer and then skips the rest of the direct conditions… works as expected unless i start the message with the name of the bot, then it doesn’t respond either.
Is this expected behaviour or am I doing something wrong?

My code looks roughly like this:

const bot = require('bbot')
const spawn = require("child_process").spawn;\b((hi|hola|hello|hey))\b/i, (b) => b.respond(`Hey ${}`), {
  id: 'hello-user'
})\b(?<=ip )([^?]*)\b/i, (b) => {
  userName =
  capturedHost = b.conditions.captured
  pythonProcess = spawn('python',["/home/onnsn/demo/", capturedHost])
  pythonProcess.stdout.on('data', (data) => {
  b.respond(`Hey ${userName}!\n` + capturedHost + ': ' + data)
}, {
  id: 'Simple-Return', force: true
})\b(spalarm)\b/i, (b) => {
  userName =
  pythonProcess = spawn('python',["/home/onnsn/demo/"])
  pythonProcess.stdout.on('data', (data) => {
  b.respond(`Hey ${userName}!\n` + data)
}, {
  id: 'Sp-Alarm'


Any help or tips on how to tackle this issue would be greatly appreciated. :slight_smile:

See my reply to your same question here: