DEV Community

Discussion on: How We Built a Slack Bot for Time Tracking with Ruby on Rails and Vue.js

codicacom profile image
Codica Author • Edited

Hey!

There have been changes to Slack API, this is why you have troubles.

Here's how you can make it work:

Step 1. Add this file in your project: config/secrets.yml
production:
secret_key_base: <%= ENV['SECRET_KEY'] %>

Step 2. Considering your question: "I don't know where to fetch the "slack_token". Is it the same as the bot token (TIMEBOT_APP_TOKEN=slack_timebot_app_token)?"
Yes, you are right.

Because of changes to Slack API, now you need to get it like this: github.com/slack-ruby/slack-ruby-c...

Step 3. Clone the project github.com/codica2/vue-timebot

In config/dev.env.js fill BASE_API with your Heroku app URL.
Run 'yarn' && 'yarn dev'.

Step 4. Create new admin via heroku console (Admin.create(email: 'your_email', password: 'your_password')).

Please let us know of the result :)

P.S. We are planning to create an updated version considering all the changes with Slack API, however, we don't have a timeline for this at the moment.

Thread Thread
richardisred profile image
Richy • Edited

Thank you so much for your answer. Unfortunately I did not manage to make it work... The command still doesn't work on slack, I am making a mistake at some point.

Would you consider making a full step-by-step tutorial including those new instructions ?

Thread Thread
codicacom profile image
Codica Author

Sorry to hear that!

Okay, we'll make a tutorial considering all the changes, however, this will take time - we don't have free resources at the moment.

We would say, this can take at least a couple of weeks.

Will keep you updated!

Thread Thread
richardisred profile image
Richy

Again, thank you so much, can't wait to see it !

Thread Thread
richardisred profile image
Richy

Hi, just a reminder that I'm still very interested to get more instructions to install the bot !