Code Monkey home page Code Monkey logo

inspire-me-slack-bot's Introduction

Inspire Me Slack Bot

Status Github Issues GitHub2 Pull Requests License

📝 Content

About   |    Installation   |    Test and Usage   |    Built with   |    Authors

🧐 About

This project is a slack bot that responds to certain commands such as quote of the day, time, date.

Screenshot

🔧 Built with

🛠 Installing

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

How to test and use

Before or after cloning the repo to your local disk, follow to steps:

  1. Create a Slack workspace if you don't have one already.

  2. Go to https://slack.com/services/new/bot

    Screenshot

  3. Create a username for your bot. Click 'Add Bot Integration'

  4. Copy your API Token shown on the screen.

    Screenshot

  5. Create a new file called .env in the root directory of the cloned project.

  6. Enter in your API Token in the .env file.

    Screenshot

  7. Make sure to run bundle install in your terminal.

  8. Open your slack workspace and locate the bot app you created earlier.

    Screenshot

  9. In your terminal, run rackup command.

  10. After seeing, 'successfully connected team {your slack workspace} message on the terminal, go to your slack channel to test.

  11. You will see a green dot next to your bot name indicating it is now active unless there is any connection error.

  12. You may now use the commands provided.

Bot Commands

# 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

APIs Used

Gems Used

# 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'

Author(s)

👤 Nusret

�� Contributing

Contributions, issues and feature requests are welcome!

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

inspire-me-slack-bot's People

Contributors

nusretbutunay avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.