About | Installation | Test and Usage | Built with | Authors
This project is a slack bot that responds to certain commands such as quote of the day, time, date.
To get a local copy of the repository please run the following commands on your terminal:
$ cd $ git clone https://github.com/nusretbutunay/inspire-me-slack-bot.git
Before or after cloning the repo to your local disk, follow to steps:
-
Create a Slack workspace if you don't have one already.
-
Create a username for your bot. Click 'Add Bot Integration'
-
Copy your API Token shown on the screen.
-
Create a new file called
.env
in the root directory of the cloned project. -
Enter in your API Token in the
.env
file. -
Make sure to run
bundle install
in your terminal. -
Open your slack workspace and locate the bot app you created earlier.
-
In your terminal, run
rackup
command. -
After seeing, 'successfully connected team {your slack workspace} message on the terminal, go to your slack channel to test.
-
You will see a green dot next to your bot name indicating it is now active unless there is any connection error.
-
You may now use the commands provided.
# hi => greets you with Hi!
# qod => Sends you a random quote of the day
# time => Tells you the current local time
# date => Tells you the current date
# picsum => Generates a random image that is 200x300
# weather <cityname> => Tells you the weather information for the given city
- Weather: https://openweathermap.org/api
- Quotes: https://type.fit/api/quotes
- Pictures: https://picsum.photos/
# gem 'addressable'
# gem 'async-websocket', '~>0.8.0'
# gem 'celluloid-io'
# gem 'dotenv'
# gem 'faraday'
# gem 'puma'
# gem 'rack'
# gem 'rubocop', '~>0.81.0'
# gem 'slack-ruby-bot'
👤 Nusret
-
Github: @Nusret
-
Twitter: @Nusret
-
Linkedin: Nusret Butunay
Contributions, issues and feature requests are welcome!
Give a ⭐️ if you like this project!
- Microverse https://www.microverse.org/
- Weather API: https://openweathermap.org/api
- Quotes API: https://type.fit/api/quotes
- Pictures API: https://picsum.photos/