function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jagadeep kjagadeep k 

Build a welcome bot for slack

When trying to verify server on my end I'm getting the following error
C:\Users\Jagadeep\Desktop\first-slack-app\node_modules\.bin\slack-verify:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list
    at new Script (vm.js:79:7)
    at createScript (vm.js:251:10)
    at Object.runInThisContext (vm.js:303:10)
    at Module._compile (internal/modules/cjs/loader.js:657:28)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
    at startup (internal/bootstrap/node.js:279:19)
Alexandru Cristian BengaAlexandru Cristian Benga
I have the same problem
Ben Chan 3Ben Chan 3
Try this command, which runs the verify.js script directly.

node node_modules/@slack/events-api/dist/verify.js --secret <SECRET HERE> --path=/@slack/events-api --port=3000

I ran this from my Node.js prompt directly and received:

The verification server is now listening at the URL: http://:::3000/@slack/events-api

Hope this helps!
LinThawLinThaw
Thanks Ben, its worked!