'use strict'

const express = require('express')
const Slapp = require('slapp')
const ConvoStore = require('slapp-convo-beepboop')
const Context = require('slapp-context-beepboop')

// use `PORT` env var on Beep Boop - default to 3000 locally
var port = process.env.PORT || 3000

var slapp = Slapp({
  // Beep Boop sets the SLACK_VERIFY_TOKEN env var
  verify_token: process.env.SLACK_VERIFY_TOKEN,
  convo_store: ConvoStore(),
  context: Context()
})

//*********************************************
// Setup different handlers for messages
//*********************************************

// response to the user typing "help"
slapp.message('^([0-9-]{9,12})$', (msg) => {
  msg.say('https://teamleader.zoom.us/j/' + msg.replace('-', ''))
})


// attach Slapp to express server
var server = slapp.attachToExpress(express())

// start http server
server.listen(port, (err) => {
  if (err) {
    return console.error(err)
  }

  console.log(`Listening on port ${port}`)
})

@@ -584,16 +584,126 @@
 ******%0A%0A
+slapp.message('3020791579', (msg) =%3E %7B%0A  msg.say('https://teamleader.zoom.us/j/' + msg.replace('-', ''))%0A%7D)%0A%0A%0A
 // respo

Test of regex is the issue