| Contents |
|---|
| Built With |
| Install |
| Hints |
| Testing |
| Authors |
| License |
This is my final project for completing the
Rubymodule. In doing so, I have created aSlack Bot.
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 ⚽
- Ruby 2.6.3
- Slack
- VS Code
- Ruby Gems
Follow these steps below to get my Application working
-
- Open your
Terminal
- Open your
-
- Navigate to the directory where you will like to install the repo by running
cd FOLDER-NAME
- Navigate to the directory where you will like to install the repo by running
-
- Run
git clone git@github.com:DcRonan/ruby-slack-bot.gitto download or you can download usingHTTPSby runninggit clone https://github.com/DcRonan/ruby-slack-bot.gitin the terminal
- Run
-
- Run
cd ruby-slack-botto enter the directory
- Run
-
- Run
bundle installto install Ruby Gems (hint: Mac users, if not working then runsudo bundle install)
- Run
-
- Create your Slack workspace
-
- Create your Bot
-
- Give it a
username,nameandlogoif you want
- Give it a
-
- Click
Save Integration
- Click
-
- Open a text editor,
VS Codefor an example
- Open a text editor,
-
- Create a
.envfile
- Create a
-
- In the
.envfile, copy and pasteSLACK_API_TOKEN= YOUR-TOKEN-HERE
- In the
-
- Open Slack and in your new workspace, click the
+on Apps to add your Bot
- Open Slack and in your new workspace, click the
-
- Run
rackupin your terminal to get your Bot working
- Run
-
- Type
helpin the Slack app to get started
- Type
There are many commands that my app provides so please look below on how to access them
- Start a conversation by saying
helloorhey: It will respond with different responses depending on the conversation - Type
helpto show the list of commands - Type
fixturesfor 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 nameand clickingInvite to Channel - To use the commands in a channel, type
@bot name [command-name]
I have used rspec testing tool to test the code by creating many test cases. Please follow below to test my code
-
- Open
Terminalagain
- Open
-
- Run
cd ruby-slack-botto enter the directory
- Run
-
- Run
rspecto start testing
- Run
-
- All tests will pass ✅
Thank you to Daniel Doubrovkine for the tutorial on building this app 👊
You can follow the tutorial here
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!



