This is a slack bot project created with ruby. I have created a slack ruby bot and called it 'globus-bot'. This bot is for showing capitals for every country. It can also check for a country's population
- Ruby
- dotenv gem
- rack-test
- puma
- celluloid-io
- restcountry gem
- slack-ruby-bot gem
Here is the video explanation of this project.
To get this project set up on your local machine, follow these simple steps:
- Open Terminal.
- Navigate to your desired location to download the contents of this repository.
- Copy and paste the following code into the Terminal: git clone
https://github.com/MkrtichSargsyan/globus-slack-bot
- Run
cd globus-slack-bot
. - Run
bundle install
to get the necessary gems. - Create a new slack workspace and give it a name
- Open bot integration link, and choose your created workspace from the top right corner, give a username for your bot and click on
Add bot integration
button. - Copy the given token, also you can change the bot username and give an avatar to your bot.
- Click on
Save Integration
button. - Create .env file in your project folder, copy your TOKEN to that .env file and paste it as
SLACK_API_TOKEN = your-token-here
- Run
rackup
from your terminal window to start running the project. - Open the Slack and go to workspace page. Invite your bot to your page.To see available commands ask for @your_bot help.
- Enjoy!
@your_bot help
Shows information about bot commands
@your_bot countries
Shows a list of all available countries
@your_bot <country name>
Shows the capital of any particular country
@your_bot <country name> population
Shows the population of any particular country
๐ค Mkrtich Sargsyan
- Github: @githubhandle
- Twitter: @twitterhandle
- Linkedin: linkedin
- Email: [email protected]
Give a โญ๏ธ if you like this project!
This project is MIT licensed.