Skip to content

Slack Bot Project using Ruby and Slack Bot API integration

License

Notifications You must be signed in to change notification settings

leonmezu1/Bot-Capstone

Repository files navigation

Ruby_lang

Ruby Capstone Project: GenieBot a powerful Slack Bot


Explore the repo - Report Bugs »

A powerful but yet simple slack bot that solves almost any query 😉


Index

About The Project

This slack bot uses the powerful wolfram alpha engine API, which allows you to solve mathematical operations, make unit conversions, extract useful facts, clarify concepts and even perform complex operations as calculating the derivative of a math function i.e.

The bot also is equiped with two commands that allow you to see the 5 latest news from the NASA and also the NASA'S picture of the day. 🌌

Road map

You can give a look to the project's road map documentation here: ROAD-MAP

Prerequisites and Instructions

  • Create a Slack workspace in: Slack create

  • Create a new Slack APP in: Slack create app

  • UPDATE!

    • The Slack APP and the Wolfram APP API token creation is explained in detail in the Useful information section, you are welcome to give it a look if further explanation is needed.

Step1

  • Generate the APP key to succesfuly log the API

Step2

  • After this the bot initial setup should be done.

  • Create a new Wolfram Alpha App in: Wolfram create app

Step3

  • Now you can obtain your API Id.

Step4

  • To run this bot locally first perform this operations:

    • Clone or download the repository:

      • (https://github.com/leonmezu1/Bot-Capstone.git)
      • (git@github.com:leonmezu1/Bot-Capstone.git)
    • Fetch and install the required gems from the Gemfile file running:

      • bundle install
    • Create and setup the .env file to store your API keys:

      • WOLFRAM_APPID= your API Key
      • SLACK_API_TOKEN= your API Key
  • Run the Bot

    • Run: rackup to put the bot online.

      • Note: The bot will online be online while the code it's running

    Step5

Run Commands

Now the bot is online let's invite it to a channel and run some commands.

Step5

  • Help

    Step6

  • Hi

    Step7

  • Nasa Latest Day Picture

    Step8

  • Nasa Latest 5 News

    Step9

  • Wolfram Query

Step9

Built With

This project has been developed with:

Linting operation is supported by:

Contact

Project Link: https://github.com/leonmezu1/Bot-Capstone

Leonardo Mezu - Leonardo Mezu L.

leo7xs@gmail.com   | Portfolio   | LinkedIn   | Twitter

Acknowledgements

RUBY Version: ruby 2.6.3p62

Leonardo Mezu - Microverse OOP Project.

About

Slack Bot Project using Ruby and Slack Bot API integration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages