Giter Site home page Giter Site logo

Comments (6)

seratch avatar seratch commented on September 27, 2024

Hi @somali3395, thanks for asking the question. It seems that your env variable is not loaded in hubot-slack for some reason. Perhaps, you may be using a bit old version, which does not support the option.

The best way to resolve this is to upgrade to the latest version. v4.10.0 uses rtm.connect by default, so that you don't need to pass any extra options: https://github.com/slackapi/hubot-slack/releases/tag/v4.10.0

from hubot-slack.

somali3395 avatar somali3395 commented on September 27, 2024

Hi @seratch , Thanks for your help.
I am using this documentation https://slack.dev/hubot-slack/ to create a BOT in slack. This guides me to install the following package "generator-hubot" .This is the latest versions that i updated. i am still getting the rtm.start error.
Uploading gg.PNG…

from hubot-slack.

somali3395 avatar somali3395 commented on September 27, 2024

gg

from hubot-slack.

seratch avatar seratch commented on September 27, 2024

@somali3395 Just in case, I've confirmed the latest version works without any issues. All I did was:

  • Head to https://my.slack.com/apps/A0F7XDU93-hubot and generate a new setting
  • npm install -g yo generator-hubot
  • mkdir my-awesome-hubot && cd my-awesome-hubot
  • yo hubot --adapter=slack
  • HUBOT_SLACK_TOKEN=(your token here) HUBOT_LOG_LEVEL=debug ./bin/hubot --adapter slack

As you can see, I followed the instructions here: https://slack.dev/hubot-slack/#basic-setup and it worked for me.

I am guessing that your app may still be using an older version for some reason. Please make sure the version is v4.10.0 for sure. When you start your hubot app, you can find the following line in the stdout outputs:

[(datetime here)] INFO hubot-slack adapter v4.10.0

Also, enabling debug-level logging may help you figure out the cause of your situation. You can run your app with debug-level logging by the following option. Refer to https://slack.dev/hubot-slack/advanced_usage#activate-logging-for-debugging for more details.

HUBOT_SLACK_TOKEN=(your token here) HUBOT_LOG_LEVEL=debug ./bin/hubot --adapter slack

from hubot-slack.

somali3395 avatar somali3395 commented on September 27, 2024

Hi @seratch . Thank you for your reply. I am getting this error while running yo hubot --adapter=slack. Which version of node and npm are you using?
ty

from hubot-slack.

somali3395 avatar somali3395 commented on September 27, 2024

Hi @seratch Thank you so much for your help. It worked

from hubot-slack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.