This bot is part of the Capstone projects which are solo projects at the end of the each of the Microverse Main Technical Curriculum sections. This project intend to test the student skills providing challenges that:
- Feels like a real-world-like project, built with business specifications; and
- Get feedback about the achievement of technical and soft skills gained during the ruby section of the program.
This bot randomly provides the user with a YouTube video to work out in home office.
I am not responsible for any injuries that might be caused by following the exercises on the videos, you should do the exercises at your own risk.
- Ruby
- Rubocop
- RSpec
- Celluloid-io
- Dotenv
- Puma
- Slack-ruby-bot
Make sure you have a Slack Space to run the bot. To create one, click here. After you created a space directory, go to the App Directory of your newly created slack space and search for the Slack Bot app, search for the bot of Slack API, and then click in "Add to Slack", add the name '10minofficeworkout', and you will have generated a bot. Copy your API Token automatic generated code, that will be used to run the bot.
To test this bot in your locally, clone the repository, navigate to it's directory, and run:
$ bundle install
$ echo 'SLACK_API_TOKEN=your_copied_token_here' > .env
$ rackup
- This should install all ruby gems;
- Generate an .env file containing the API token from the Setup; and
- Start a local server where 10minofficeworkout will live.
Once you have locally installed the bot you can log in into your slack workspace and invite the bot to your channel, typing /invite @10minofficeworkout
.
Typing @10minofficeworkout help
will return the following message:
10 Minutes Office Workout - Randomly get 10 minutes workouts that can be done in the confort of your office. Commands: get_workout - Returns a random link of YouTube workout that can be done at your office. get_motivation - Returns a random motivational quote. Other commands: help - Shows help information. hi - Says hello. For getting description of the command use: help For more information see https://github.com/slack-ruby/slack-ruby-bot, please.
👤 Carlos Veiga
- Github: @wrakc
- Twitter: @carlosveig
- Linkedin: chveiga
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Thanks Microverse and The Minskins team.
The gem is available as open source under the terms of the MIT License.