Faye Hayes
Dec 1 · 1 min read

Hi! were you able to get this running? I’m not sure that you can have slash commands listen in a particular channel. You should be able to check what channel any request came from. In one of my methods I have a check for if a message came from a particular channel by adding this bit of code

if (message.event.channel == "XXXXXXXX") {
console.log('in the correct channel'
}

You can get the channel ID by looking at the URL of the channel you want to watch out for: https://app.slack.com/client/XXXXXXX/THECHANNEL_ID

Hope this helps.

    Faye Hayes

    Written by

    Freelance Web Developer working with startups to build MVPs, Landing Pages, and site redesigns — (fayemyrettehayes.com). Tweet: @fayemhayes

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade