Skip to content

This is my final project for completing the Ruby module. In doing so, I have created a Slack Bot.

License

Notifications You must be signed in to change notification settings

DcRonan/ruby-slack-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby Slack Bot 🤖

Microverse Slack

Library Directory 📙

Contents
Built With
Install
Hints
Testing
Authors
License

Description

This is my final project for completing the Ruby module. In doing so, I have created a Slack Bot.

gif

In this Slack Bot, I have created it so you can interact, receive messages and information for what you desire. I have created an app that provides you with a broad range of information on an English football league, the Premier League

Built With 🛠

- Ruby 2.6.3
- Slack
- VS Code
- Ruby Gems

img img img img

Install ⏳

Follow these steps below to get my Application working

    • Open your Terminal
    • Navigate to the directory where you will like to install the repo by running cd FOLDER-NAME
    • Run git clone git@github.com:DcRonan/ruby-slack-bot.git to download or you can download using HTTPS by running git clone https://github.com/DcRonan/ruby-slack-bot.git in the terminal
    • Run cd ruby-slack-bot to enter the directory
    • Run bundle install to install Ruby Gems (hint: Mac users, if not working then run sudo bundle install)
    • Create your Bot
    • Give it a username, name and logo if you want
    • Keep note of your API Token as shown in the example below: api-token
    • Click Save Integration
    • Open a text editor, VS Code for an example
    • Create a .env file
    • In the .env file, copy and paste SLACK_API_TOKEN= YOUR-TOKEN-HERE
    • Open Slack and in your new workspace, click the + on Apps to add your Bot
    • Run rackup in your terminal to get your Bot working
    • Type help in the Slack app to get started

There are many commands that my app provides so please look below on how to access them

Hints 💡

  • Start a conversation by saying hello or hey : It will respond with different responses depending on the conversation
  • Type help to show the list of commands
  • Type fixtures for example and this will give you the link to all the upcoming Premier League fixtures 📆
  • Invite your Bot to a channel mentioning their name @bot name and clicking Invite to Channel
  • To use the commands in a channel, type @bot name [command-name]

Testing ⚙️

I have used rspec testing tool to test the code by creating many test cases. Please follow below to test my code

    • Open Terminal again
    • Run cd ruby-slack-bot to enter the directory
    • Run rspec to start testing
    • All tests will pass ✅

tests

Authors

👨‍💻 Daniel Ronan

GitHub
LINKEDIN
EMAIL
TWITTER

Acknowledgements 🌟

Thank you to Daniel Doubrovkine for the tutorial on building this app 👊

You can follow the tutorial here

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

License

Cocoapods

About

This is my final project for completing the Ruby module. In doing so, I have created a Slack Bot.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages